Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Last active February 22, 2018 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexpersian/e6ab115dc12f3d48eee0e7f27dfb567d to your computer and use it in GitHub Desktop.
Save alexpersian/e6ab115dc12f3d48eee0e7f27dfb567d to your computer and use it in GitHub Desktop.
ERROR ITMS-90502 Fix

Update on ERROR ITMS-90502: "Invalid Bundle. Apps that only contain the arm64 slice must also have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist."

This looks to be an issue with armv7 / armv7s architecture flags hanging around after a project has been transitioned to arm64 only. The UIRequiredDeviceCapabilities flag for arm64 previously was enough to block 32bit installs, but Apple must have silently changed their criteria yesterday to enforce that explicitly across all proj files within a bundle. Our main project had fully transitioned to 64bit, but an internal SDK proj and our Pods proj still had armv7/armv7s flags.

Adding this to the podfile was enough to fix the issue:

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['VALID_ARCHS'] = 'arm64'
  end
end

Assuming this means that Cocoapods, by default, will create frameworks for 64bit and 32bit. Hopefully that changes soon because of this ITC update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment