Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iTMS transporter transfer failed due to short version format #13

Open
okalentiev opened this issue Sep 1, 2022 · 1 comment
Open

iTMS transporter transfer failed due to short version format #13

okalentiev opened this issue Sep 1, 2022 · 1 comment

Comments

@okalentiev
Copy link

When trying to upload an app with Fidel version 2.0.0-beta8 installed via Cocoapods, the iTMS fails with the following message:

[23:58:20]: ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '2.0.0-beta8' in the Info.plist file at '${bundlePath}' must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"

Steps to reproduce:

  1. Build release with Fidel installed. In our case, we have it installed from the em branch like this:

pod 'Fidel', :git => 'https://github.com/FidelLimited/fidel-ios', :branch => 'em'

  1. Verify the build from iTMS Transporter.
@filipef101
Copy link

You can patch it during pod install post install phase.
2.0.0-beta8 is not compliant semver and apple rejects it.

On podfile:

...
post_install do |installer|
...
  # Fix fidel sdk beta versions including unvonventional version preventing submitting app to appstore connect
  plist = "#{Pod::Config.instance.installation_root.to_s}/Pods/Fidel/Fidel.xcframework/ios-arm64/Fidel.framework/Info.plist"
  version = "2.0.0"
  puts "Patching Fidel sdk version number to  #{version}"
  `#{plist_buddy} -c "Set CFBundleShortVersionString #{version}" "#{plist}"`
...
end
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants