【问题标题】:ld: truncated fat file for manual added frameworkld:手动添加框架的截断脂肪文件
【发布时间】:2017-06-21 16:45:23
【问题描述】:

手动添加的框架存在问题。我之前在添加本手册时正在工作,但现在我已经完成了更改。

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)。

【问题讨论】:

    标签: swift xcode8


    【解决方案1】:
    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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-26
      • 2014-02-06
      • 1970-01-01
      • 1970-01-01
      • 2020-12-19
      • 1970-01-01
      相关资源
      最近更新 更多