1

我在 Xcode 7.1.1 中遇到的当前错误是:

ld: bitcode bundle could not be generated because 
'/Users/--/Carthage/Build/tvOS/SwiftyJSON.framework/SwiftyJSON' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

每个人都说要在其他 C 标志中添加“-fembed-bitcode”。我已经这样做了,但我仍然遇到同样的错误。我不确定是我添加它的方式还是什么。

我目前正在将其添加到 Other C Flags > Release > Any tvOS SDK

关于为什么我仍然收到错误的任何想法?

4

1 回答 1

1

据我所知,如果您没有源代码,您将无法在启用位码的情况下重新构建该框架。

我碰巧需要从源代码重建一些幸运的是开源的框架。

我查看了 SwiftyJSON,看起来已经支持位码,尝试更新到最新版本https://github.com/SwiftyJSON/SwiftyJSON

另外,您是否有机会通过 Carthage 获得 SwiftyJSON?他们也更新了对位码的支持。https://github.com/Carthage/Carthage

于 2015-11-13T15:30:11.667 回答