我在尝试运行使用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)我真的不知道问题是什么,也不知道如何解决这样的错误--我没有找到任何处理这类问题的文档。
发布于 2016-09-02 06:08:08
尝试在您的项目中进行以下更改:-
-all_load。这可能很可能是权限问题、损坏的iOS SDK安装或损坏的Xcode安装。我将删除/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulatorXXX.sdk,然后进入Xcode > Preferences >下载并重新安装iOS SDK。然后再尝试清理和构建您的项目。如果您仍然有问题,我会考虑重新安装Xcode。
还请看一下如何修复 xcode路径问题。
发布于 2017-02-20 10:56:03
在我的一个项目中,我也犯了类似的错误:
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解决方案是清除吊舱缓存并重新下载所有内容。
rm -rf ~/Library/Caches/CocoaPods
rm -rf `pwd`/Pods/
pod update发布于 2017-02-23 10:50:37
我也犯了类似的错误:
ld: truncated fat file. Slice from *** to *** is past end of file with length *** file '***' for architecture armv7对我来说,解决方案是放弃我的一个子模块中的更改。
编辑:
今天又发生了一次。这发生后,我需要强制重新启动我的电脑。可能是xCode或SourceTree更改子模块。
https://stackoverflow.com/questions/39162804
复制相似问题