Giter Club home page Giter Club logo

Comments (4)

felixvisee avatar felixvisee commented on August 23, 2024

There are Swift 2.1, Swift 2.1.1, and Swift 2.2 compatible branches and tags (for Swift 2.1 and 2.2) for the moment, but we will put more effort into this soon!

from heimdallr.swift.

illaz avatar illaz commented on August 23, 2024

Sorry, maybe it wasn't clear what my exact problem is.
If I upload an app (which uses Heimdallr) to TestFlight, Apple rejects it instantly during upload since there is a "beta" keyword in the Heimdallr podspec.

subspec.dependency 'Result', '0.6.0-beta.4'

The funny thing is if I fix it manually (changing 0.6.0-beta.4 to 0.6.0) everything works fine (even if it's still the same Result code). So Apple simply seems to check the uploaded files for the "beta" strings.
It's also interesting that Apple doesn't beef about the "alpha" at ReactiveCocoa. Maybe that's the case because Apple likes Alphas more than Betas... or it isn't such a simple check and it doesn't beef because we don't use ReactiveCocoa.

I will upgrade to your Swift 2.2 branch and give feedback after our next release in February. Maybe Apple accepts it despite the spec.version = '3.1.0-alpha.3' ;)

from heimdallr.swift.

felixvisee avatar felixvisee commented on August 23, 2024

You might also use the following post install hook:

post_install do |installer|
  plist_buddy = "/usr/libexec/PlistBuddy"

  # Fix poorly formatted versions.
  installer.pods_project.targets.each do |target|
    plist = "Pods/Target Support Files/#{target}/Info.plist"
    version = `#{plist_buddy} -c "Print CFBundleShortVersionString" "#{plist}"`.strip
    version_stripped = /^([\d\.]*)/.match(version).captures[0]
    version_components = version_stripped.split('.').map { |s| s.to_i }

    # Ignore properly formatted versions.
    unless version_components.slice(0..2).join('.') == version
      major, minor, patch = version_components

      minor ||= 0
      patch ||= 0

      version_fixed = "#{major}.#{minor}.#{patch}"

      puts "Changing version of #{target} from #{version} to #{version_fixed}."
      `#{plist_buddy} -c "Set CFBundleShortVersionString #{version_fixed}" "#{plist}"`
    end
  end
end

from heimdallr.swift.

illaz avatar illaz commented on August 23, 2024

Works like a charm. Thank you very much!

from heimdallr.swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.