14

Yesterday I started to get strange error message from iTunes Connect:

ITMS-90668
Invalid Bundle Executable.
The executable file '...' contains incomplete bitcode.
To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu.

Actually, I am getting many identical messages for each of my embedded frameworks.

I do use Bitcode, and I have not changed anything related Bitcode in my project. It seems like a new ITMS requirement (or bug). And I have no idea how to fix it.

Looks like this problem mysteriously related to CI tools like Shenzhen or BuddyBuild. Or, maybe, it is related to cases when dependencies contain precompiled code.

Just in case, my app:

  • Has these dependencies which have precompiled code: BuddyBuildSDK, Firebase, CardIO.
  • Written in Swift.
  • Has iOS Keyboard Extension.
  • Use BuddyBuild.
  • Use CocoaPods.

Update:

I had changed virtually nothing and then the problem did disappear yesterday. I have no idea why exactly. I believe Apple just fixed that bug or it is fluke problem.

Valentin Shergin
  • 6,630
  • 2
  • 45
  • 50

2 Answers2

3

I had the same problem with some pod dependencies. I changed "Enable Bitcode" build setting for each pod projects causing the issue (following the error descriptions from itunesconnect). Now everything works.

You can set it in the Podfile. Here an example that changes for each dependencies:

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

Found here: Disable bitcode for project and cocoapods dependencies with Xcode7?

Community
  • 1
  • 1
Julien
  • 903
  • 5
  • 8
  • So, is this issue related to buddybuild?! – Valentin Shergin May 29 '16 at 19:54
  • I don't think so. I used the error description back from itunesConnect in buddybuild. I think Apple has changed the applications validations rules. – Julien May 29 '16 at 20:00
  • Ok, that's nice temporary workaround but I do want to use Bitcode, so obviously I don't want to disable it. – Valentin Shergin May 31 '16 at 17:57
  • I understand, you can just disable bitcode for pod libraries with problems. If I find a solution to reactivate it, I'll share it. – Julien May 31 '16 at 18:36
  • 1
    This worked for me. Does anyone know why this error has just started appearing? We haven't changed any bitcode related settings in a few releases... – bensnider Jun 02 '16 at 17:23
-2

Just register a problem in the git card.io library: https://github.com/card-io/card.io-iOS-SDK/issues/205

I hope to resolve this situation as soon as possible!