链接器命令失败,退出代码为 1 - Xcode 7
Linker command failed with exit code 1 - Xcode 7
我正在尝试存档我的应用程序,但每次我尝试时都会收到错误消息:
ld: '/Users/Omer/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的 Enable Bitcode 设置为 YES 但我仍然收到此错误。
是什么原因造成的,我该如何解决?
更新
我已将 Enable Bitcode 设置为 NO,但现在出现更多错误:
将其设置为 NO
因为如错误所说 /Users/Omer/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)' does not contain bitcode.
您的选择是:
- 为项目禁用位代码
- 更新到最新的支持位码的Facebook SDK
很多场景都会出现
选择-1
Check that all your bundle resources are copied in build phase
选择-2
It turned out that all related framework for Google are added or not
选择 3
Check that all your bundle resources are copied in build phase
选择4
如果您正在使用 cocoapods
,请确保您的目标 build settings
在 other linker flags
部分
中包含 $(inherited)
选择 5
如果您的 class' .m 文件未在目标的“构建阶段”选项卡的“编译源”步骤下列出,您可能会遇到此类错误。有时它会丢失情节,您需要手动添加 .m 文件。
Preoject TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run
选择 6
Normally we add the library of the imported project in Target Dependency in Build Phases but we forget to add "compiled library" in Link Binary with Libraries in Build Phases
我遇到了同样的问题。我的答案是
1.Right-点击错误信息-->查看日志。
2.Look 在错误信息处。查找文件名。
3.Find 项目中的文件名。
4.After 发现删除它 运行 或再次存档。
这就是我的解决方案。这是一个令人头疼的问题。希望能帮到你;
我正在尝试存档我的应用程序,但每次我尝试时都会收到错误消息:
ld: '/Users/Omer/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的 Enable Bitcode 设置为 YES 但我仍然收到此错误。
是什么原因造成的,我该如何解决?
更新
我已将 Enable Bitcode 设置为 NO,但现在出现更多错误:
将其设置为 NO
因为如错误所说 /Users/Omer/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)' does not contain bitcode.
您的选择是:
- 为项目禁用位代码
- 更新到最新的支持位码的Facebook SDK
很多场景都会出现
选择-1
Check that all your bundle resources are copied in build phase
选择-2
It turned out that all related framework for Google are added or not
选择 3
Check that all your bundle resources are copied in build phase
选择4
如果您正在使用 cocoapods
,请确保您的目标 build settings
在 other linker flags
部分
$(inherited)
选择 5
如果您的 class' .m 文件未在目标的“构建阶段”选项卡的“编译源”步骤下列出,您可能会遇到此类错误。有时它会丢失情节,您需要手动添加 .m 文件。
Preoject TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run
选择 6
Normally we add the library of the imported project in Target Dependency in Build Phases but we forget to add "compiled library" in Link Binary with Libraries in Build Phases
我遇到了同样的问题。我的答案是 1.Right-点击错误信息-->查看日志。 2.Look 在错误信息处。查找文件名。 3.Find 项目中的文件名。 4.After 发现删除它 运行 或再次存档。 这就是我的解决方案。这是一个令人头疼的问题。希望能帮到你;