ITMS-90668 - Invalid Bundle Executable. The executable file contains incomplete bitcode

时间:2023-01-12 17:59:45

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

昨天我开始从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.

我确实使用Bitcode,而且在我的项目中我没有改变任何与Bitcode相关的东西。这似乎是一个新的ITMS要求(或bug)。我不知道如何解决它。

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.

看起来这个问题神秘地与深圳或BuddyBuild等CI工具有关。或者,它可能与依赖项包含预编译代码的情况有关。

Just in case, my app:

以防万一,我的应用程序:

  • Has these dependencies which have precompiled code: BuddyBuildSDK, Firebase, CardIO.
  • 这些依赖项具有预编译代码:BuddyBuildSDK,Firebase,CardIO。

  • Written in Swift.
  • 用Swift写的。

  • Has iOS Keyboard Extension.
  • 有iOS键盘扩展。

  • 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.

我几乎什么也没改变,然后问题确实在昨天消失了。我完全不知道为什么。我相信Apple只是修复了这个bug或者是侥幸问题。

2 个解决方案

#1


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.

我对一些pod依赖项有同样的问题。我为每个导致问题的pod项目更改了“Enable Bitcode”构建设置(遵循itunesconnect的错误描述)。现在一切正常。

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

您可以在Podfile中进行设置。这是一个针对每个依赖项进行更改的示例:

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?

在这里找到:使用Xcode7禁用项目和cocoapods依赖项的bitcode?

#2


-1  

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

只需在git card.io库中注册一个问题:https://github.com/card-io/card.io-iOS-SDK/issues/205

I hope to resolve this situation as soon as possible!

我希望尽快解决这个问题!

#1


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.

我对一些pod依赖项有同样的问题。我为每个导致问题的pod项目更改了“Enable Bitcode”构建设置(遵循itunesconnect的错误描述)。现在一切正常。

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

您可以在Podfile中进行设置。这是一个针对每个依赖项进行更改的示例:

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?

在这里找到:使用Xcode7禁用项目和cocoapods依赖项的bitcode?

#2


-1  

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

只需在git card.io库中注册一个问题:https://github.com/card-io/card.io-iOS-SDK/issues/205

I hope to resolve this situation as soon as possible!

我希望尽快解决这个问题!