Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ld: truncated fat file

I have found these error while trying to run an XCODE application that uses NinevehGL framework:

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)

I don't really know whats the problem and how to solve an error like these I didn't find any documentation handling these kind of problem .

like image 335
Ahlem Jarrar Avatar asked Aug 26 '16 09:08

Ahlem Jarrar


Video Answer


1 Answers

I had a similar error on one of my project:

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

The solution was to clear the pod cache and re-download everything.

rm -rf ~/Library/Caches/CocoaPods
rm -rf `pwd`/Pods/
pod update
like image 183
ZeWaren Avatar answered Oct 17 '22 18:10

ZeWaren