我在尝试运行使用 NinevehGL 框架的 XCODE 应用程序时发现了这些错误:
ld: truncated fat file. Slice from 1478656 to 2279616 is past end of file with length 2270604 file './NinevehGL.framework/NinevehGL' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我真的不知道问题是什么以及如何解决此类错误我没有找到任何处理此类问题的文档。
最佳答案
我在我的一个项目中遇到了类似的错误:
ld: truncated fat file. Slice from 1067056 to 2127456 is past end of file with length 770048 file '/Users/jenkins-slave-pepper/workspace/iosbuild/App/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/FirebaseInstanceID' for architecture armv7
解决方案是清除 pod 缓存并重新下载所有内容。
rm -rf ~/Library/Caches/CocoaPods
rm -rf `pwd`/Pods/
pod update
关于ios - ld : truncated fat file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39162804/