Truncated file filter error

Although I am familiar with the development in Objective-C, I still consider myself a little n00b when it comes to interpreting errors. I am working on an application for work that others are working on. I believe that we can have different versions of Xcode, and one developer has a PC (others and I have a MacBook). I am using Xcode 4.5.1.

Problem

I get the following Apple Mach-O Linker error:

ld: truncated fat file. Slice from 68 to 2783300 - end of file with a length of 135 for the i386 architecture clang: error: linker command failed with exit code 1 (use -v to see the call)

The complete error is as follows (paths renamed):

Ld build / Debug-iphonesimulator / MyApp.app / MyApp normal i386 cd / Users / me / Documents / MyApp / trunk setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.pl usr / bin: /Applications/Xcode.app/Contents/Developer/usr/bin: / usr / bin: / bin: / USR / SBIN: / SBIN: / USR / local / bin: / USR / X11 / bin: / OPT / local / bin: / USR / local / git / bin "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot / Applications / Xcode.app / Contents /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L / Users / me / Documents / MyApp / trunk / build / Debug-iphonesimulator -F / Users / me / Documents / MyApp / trunk / build / Debug-iphonesimulator -F / Users / me / Documents / MyApp / trunk -filelist / Users / me / Documents / MyApp / trunk / build / MyApp.build / Debug-iphonesimulator / MyAp p.build/Objects-normal/i386/MyApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -lsqlite3.0 -v -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version -framework MobileCoreServices -weak_framework Accounts -weak_framework AdSupport -weak_framework Social - framework CoreBluetooth -framework MediaPlayer -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -o / Users / Assembly / Documents -iphonesimulator / MyApp.app / MyApp

Apple clang version 4.1 (tags / Apple / clang-421.11.66) (based on LLVM 3.1svn) Purpose: i386-apple-darwin11.4.2 Theme model: posix "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault .xctoolchain / usr / bin / ld "-demangle -dynamic -arch i386 -ios_simulator_version_min 5.1.0 -syslibroot / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator6.0.sdk - o / Users / me / Documents / MyApp / trunk / build / Debug-iphonesimulator / MyApp.app / MyApp -lcrt1.o -L / Users / me / Documents / MyApp / trunk / build / Debug-iphonesimulator -filelist / Users / me / Documents / MyApp / trunk / build / MyApp.build / Debug-iphonesimulator / MyApp.build / Objects -normal / i386 / MyApp.LinkFileList -objc_abi_version 2 -lsqlite3.0 -no_implicit_dylibs -framework MobileCoreSerwefweakweakakweakweakakakweakakweakweakweakakakweakweak -weak_framework Social -framework CoreBluetooth -framework MediaPlayer -framework QuartzCore -frame work UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -force_load / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / lib / arc / libarclite_iphonesimulator.a -framework Foundation -lobjc -lSystem / Applications / Xcode .app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin /../ lib / clang / 4.1 / lib / darwin / libclang_rt.ios.a -F / Users / me / Documents / MyApp / trunk / build / Debug-iphonesimulator -F / Users / me / MyApp / trunk ld: truncated fat file. Slice 68 to 2783300 is the end of a 135 file for the i386 clang architecture: error: linker command failed with exit code 1 (use -v to see Call)

I did not find documentation about this error. What is the problem? How do I resolve a mistake?

+8
ios xcode linker-errors
source share
1 answer

I read this answer somewhere,

Symbolic links to files and folders (in your case, some kind of framework) turn into bold files when they move from MAC-OS / X to Windows. Therefore, whenever we create a copy-paste / checkout project framework from your MAC code on Windows or vice versa, it changes, files change in terms of symbolic links.

So what you can do is just check your project files and replace only one framework (note that the frame you are going to replace needs to be downloaded or copied somewhere from the MAC, NOT WINDOWS).

Hope this helps someone!

0
source share

All Articles