LoginSignup
38
37

More than 5 years have passed since last update.

XcodeでERROR ITMS-90635: "Invalid Mach-O Format"

Last updated at Posted at 2016-06-04

XcodeのOrganizerで「Upload to App Store」を選択してアプリをアップロードしようとしたら、次のようなエラーが出て失敗してしまいました。

ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "MyApp.app/Frameworks/SDWebImage.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and arm64(machine code), while the nested bundle Mach-O contains armv7(bitcode) and arm64(bitcode). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."

調べた結果、Bitcodeを無効にしたアプリでは、Cocoapodsの各Frameworkも同じくBitcodeを無効にする必要があるとのことです。

Podfileに次のコードを埋め込んでおくと、pod install時にBitcodeを無効にしてくれます。

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

引用: http://stackoverflow.com/questions/37613550/xcode-error-itms-90635-invalid-mach-o-in-bundle-submitting-to-app-store


2016/06/19 追記

iTunes Connectへのアップロード時に「Include Bitcode」のチェックを外せばよいそうです。
http://stackoverflow.com/a/37624641/3958295

@tomoyuki28jp さんに教えていただきました。ありがとうございます。

38
37
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
37