手动添加框架存在问题。我之前在工作时加入了这本手册,但我已经做了改变,我现在就来了。
ld: truncated fat file. Slice from 2670592 to 5510224 is past end of file with length 5505024 file '.....' for architecture x86_64
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我不知道如何对它进行排序。现在使用XCode版本8.3.2(8E2002)。
答案 0 :(得分:0)
Try to made following changes in your project:-
Include all necessary frameworks in the link phase
Remove -all_load from Other Linker Flags.
Clean the build folder and re-compiled from scratch.
This could very well be a permission issue, a corrupt iOS SDK install, or a corrupt Xcode install. I would remove /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulatorXXX.sdk, then go into Xcode > Preferences > Downloads and reinstall the iOS SDK. Then try again to clean and build your project. If you still have problems, I would consider reinstalling Xcode again.