到目前为止一切顺利,但是: 归档应用程序以在Apple存储中提交时,我收到链接器错误。我已经清理了项目并重建了哪个有效。同时分析应用程序。只有归档才会抛出错误:
Ld /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/WHatl.build/Objects-normal/armv7/WHatl normal armv7
cd /Users/user/Desktop/Prototypes
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/BuildProductsPath/Release-iphoneos -F/Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/BuildProductsPath/Release-iphoneos -F/Users/user/Documents/FacebookSDKs-iOS-4 -filelist /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/WHatl.build/Objects-normal/armv7/WHatl.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.1 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/BuildProductsPath/Release-iphoneos -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/WHatl.build/Objects-normal/armv7/WHatl.swiftmodule -lz -framework FBSDKCoreKit -framework FBSDKShareKit -framework FBSDKLoginKit -lsqlite3 -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/WHatl.build/Objects-normal/armv7/WHatl_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/myapp-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/ArchiveIntermediates/WORLDHISTORY_ATLAS/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/WHatl.build/Objects-normal/armv7/WHatl
ld: warning: Auto-Linking supplied '/Users/user/Documents/FacebookSDKs-iOS-4/Bolts.framework/Bolts', framework linker option at /Users/user/Documents/FacebookSDKs-iOS-4/Bolts.framework/Bolts is not a dylib
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
任何提示?怎么分析?
更新
我还像其他3个框架一样添加了Bolts.framework。该应用程序仍然可以在模拟器和设备上构建和运行,但Archiving仍然会引发错误,但不同的是:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
任何帮助?
更新2
我想我解决了这个问题。我修改了"启用Bitcode"到"不"在构建设置中。但我不知道这种变化会带来什么影响。 有人知道吗?
答案 0 :(得分:0)
请尝试以下步骤: 选择Xcode - >转到窗口选项 - >选择项目 - >删除派生数据 - >退出Xcode - >再次运行您的应用程序 - >存档应用