I am being thrown an error while building my application post adding the libRxAutomation library. I have followed the instructions that are given in their website to integrate the library, moreover it is similar to adding an external library like test flight sdk, flurry etc.
App name * app scheme is replaced with *.. Because of few reasons I am not able to reveal the name. Sorry for the inconvenience caused.
People suggested to check if any file is missing/ are added twice, I have checked in my project and every file is added only once...
Ld /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/******-internal\ Beta\ Test.app/******-internal\ Beta\ Test normal i386
cd /Users/dinakarsoma2/Desktop/Patches_test/3.0/******
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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.1.sdk -L/Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -L\\\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\\\ Libraries/Flurry\\\" -L\\\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\\\ Libraries/TestFlight\\\ SDK\\\" -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -L/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/TestFlight\ SDK -F/Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/****** -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/DTRichTextEditor.embeddedframework -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/******/External\ Libraries/DTRichTextEditor -F/Users/dinakarsoma2/Desktop/Patches_test/3.0/******/../../../../../../Downloads -filelist /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Intermediates/******.build/Debug-iphonesimulator/******-internal\ Beta\ Test.build/Objects-normal/i386/******-internal\ Beta\ Test.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -fobjc-link-runtime -fprofile-arcs -ftest-coverage -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -lz.1.2.5 -framework AssetsLibrary /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/libDTRichTextEditor.a -framework CoreText -framework MessageUI -framework StoreKit -framework CoreGraphics -framework GameKit -framework ImageIO -framework AddressBookUI -framework AddressBook -framework EventKit -framework EventKitUI -framework CFNetwork -framework CoreData -lxml2 -framework MobileCoreServices -framework QuartzCore -framework Security -framework UIKit -framework Foundation -lRxAutomationUni_411 -framework SystemConfiguration -lFlurry -lTestFlight -Xlinker -dependency_info -Xlinker /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Intermediates/******.build/Debug-iphonesimulator/******-internal\ Beta\ Test.build/Objects-normal/i386/******-internal\ Beta\ Test_dependency_info.dat -o /Users/dinakarsoma2/Library/Developer/Xcode/DerivedData/******-blnbgtkobwzputaagcrtirppgsho/Build/Products/Debug-iphonesimulator/******-internal\ Beta\ Test.app/******-internal\ Beta\ Test
ld: warning: directory not found for option '-L\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/*****/External\ Libraries/Flurry\"'
ld: warning: directory not found for option '-L\"/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/*****/External\ Libraries/TestFlight\ SDK\"'
ld: warning: directory not found for option '-F/Users/dinakarsoma2/Desktop/Patches_test/3.0/*****/../../../../../../Downloads'
ld: library not found for -lFlurry
clang: error: linker command failed with exit code 1 (use -v to see invocation)
As anyone faced a silmilar issue.. Plz help me with your thoughts. The issue looks a small one but I am struck with this for the past couple of hours.
Any help is appreciated.. thanks in advance
Finally fixed the issue... The issue was a very silly one..
Posting the same here if by any chance if someone else gets struck with a similar issue..
In Build settings -> Search Paths - The path for external providers (My case - Testflight,flurry etc). In the path the there is a space which is encoded and replaced with "\",etc.
I have removed extra character in the path which solved my issue..
ex:my path - "$(SRCROOT)/TargetName/External Libraries/TestFlight SDK"
its encoded as "$(SRCROOT)/TargetName/External Libraries/TestFlight \SDK"
removing the "\" solved the case..
Related
I've been working on an app for some time now and it had been giving me trouble compiling on an iPhone. Recently, it stopped compiling even on the simulator. I've browsed stack overflow and other websites for answers but I can't seem to find anything that resolves the issue. Below is the error I'm getting.
I've restored an earlier version of the entire app to see if that fixed the problem but it didn't seem to make any difference. I'm still getting the same error.
Can anyone help?
Ld /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator/lynx.app/lynx normal x86_64
cd /Users/beauharper/Documents/Developer/lynx
export IPHONEOS_DEPLOYMENT_TARGET=9.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator -F/Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator -F/Users/beauharper/Documents/Developer/lynx/Pods/GoogleMaps/Frameworks -filelist /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=9.2 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBolts -lFBSDKCoreKit -lFBSDKLoginKit -lParse -lParseFacebookUtilsV4 -lParseTwitterUtils -lParseUI -lc++ -licucore -lsqlite3 -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework Foundation -framework GLKit -framework GoogleMaps -framework ImageIO -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework UIKit -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx.swiftmodule -lPods -lPods-lynx -Xlinker -dependency_info -Xlinker /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Intermediates/lynx.build/Debug-iphonesimulator/lynx.build/Objects-normal/x86_64/lynx_dependency_info.dat -o /Users/beauharper/Library/Developer/Xcode/DerivedData/lynx-gbjyyjvzcpeldyadlzddtokengts/Build/Products/Debug-iphonesimulator/lynx.app/lynx
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After further review and fiddling, and after reviewing a similar question referenced by #damian, it seems that the solution was this:
I separated the app and the test targets in the Podfile by using
target :App do
…
end
target :AppTests do
…
end
This resulted in two new products libPods-App.a and libPods-AppTests.a, respectively and they made the previous product libPods.a obsolete. I had to remove this product from the Link Binary With Libraries Section of the Build Phases configuration of both targets.
Thanks for the input everyone!
Try deleting your Derived Data folder, restarting Xcode and and running the project again. Go to Window -> Projects and navigate to your project. There should be mention of your derived data folder. Press Delete, restart Xcode and try building it again. See if that kicks it back into high gear again.
I am working with an XCode project which was fine yesterday but today without any change in code I am getting following compile error.
Any suggestion? How can i fix it?
Ld DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds normal i386
cd "/Users/admin/Desktop/App 2"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -L/Users/admin/Desktop/App\ 2/Classes/ListControl/OELib -L/Users/admin/Desktop/App\ 2/../../../iPad/API\'s/Google\ Analytics\ SDK/Library -L/Users/admin/Desktop/App\ 2/Classes/Analytic -LLibrary -F/Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -licucore -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreMedia -framework AVFoundation -framework NewsstandKit -lsqlite3.0 -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework QuartzCore -framework SystemConfiguration -lGoogleAnalytics_NoThumb -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework CoreText -framework CoreLocation -framework MapKit -framework StoreKit -lxml2 -lGoogleAnalytics -Xlinker -dependency_info -Xlinker /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Intermediates/OEiPhone.build/Debug-iphonesimulator/Project\ Sounds.build/Objects-normal/i386/Project\ Sounds_dependency_info.dat -o /Users/admin/Desktop/App\ 2/DerivedData/OEiPhone/Build/Products/Debug-iphonesimulator/Project\ Sounds.app/Project\ Sounds
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/ListControl/OELib'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/admin/Desktop/App 2/Classes/Analytic'
ld: warning: directory not found for option '-LLibrary'
ld: library not found for -lGoogleAnalytics_NoThumb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had the same problem.
Make sure to remove the library in your
Project -> Build Phases -> Link Binary With Libraries
if you removed it or add it if it's missing.
This path
/Users/admin/Desktop/App 2/../../../iPad/API's/Google Analytics SDK/Library
Is pointing at a Library on your desktop. Is that library still there, or did you move/delete it?
I took an old game that I had and wanted to add the PebbleFramework and now I am getting these warnings and errors. I followed their documentation correctly.
Any help would greatly be appreciated
Ld /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe normal i386
cd /Users/developer/Developer/iOS/TicTac
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator -F/Users/developer/Developer/iOS/TicTac -F/Users/developer/Downloads/TicTac -filelist /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -framework CoreLocation -lz -framework ExternalAccessory -framework CoreBluetooth -framework CoreMotion -framework MessageUI -framework GameKit -framework iAd -framework AudioToolbox -framework AVFoundation -framework SystemConfiguration -framework AdSupport -framework CoreGraphics -framework QuartzCore -framework UIKit -framework PebbleVendor -framework PebbleKit -framework Foundation -framework RevMobAds -Xlinker -dependency_info -Xlinker /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Intermediates/TicTacToe.build/Debug-iphonesimulator/TicTacToe.build/Objects-normal/i386/TicTacToe_dependency_info.dat -o /Users/developer/Library/Developer/Xcode/DerivedData/TicTacToe-cjyphzfzstogbbegocrpujgsfhxp/Build/Products/Debug-iphonesimulator/TicTacToe.app/TicTacToe
ld: warning: directory not found for option '-F/Users/developer/Downloads/TicTac'
Undefined symbols for architecture i386:
"_kCFErrorDomainCFNetwork", referenced from:
-[QServer netService:didNotPublish:] in PebbleKit(QServer.o)
"_kCFStreamErrorDomainNetServices", referenced from:
-[QServer netService:didNotPublish:] in PebbleKit(QServer.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Below are the instructions that I followed when adding the PebbleKit framework.
## Integrating PebbleKit Manually
- Drag PebbleKit.framework into project
- Drag in PebbleVendor.framework into the project, or, drag the PebbleVendor.xcodeproj into project if you need to control the 3rd party components needed for PebbleKit.
- Link ExternalAccessory.framework, libz.dylib, CoreBluetooth.framework, CoreMotion.framework and MessageUI.framework
- Add "-ObjC" linker flag to your project's build settings
- Add the value "com.getpebble.public" to the "Supported external accessory protocols" (UISupportedExternalAccessoryProtocols) array in your app's Info.plist
- Optionally, add the value "App communicates with an accessory" (external-accessory) to the "Required background modes" (UIBackgroundModes) array in your app's Info.plist
Make sure that CFNetwork is also linked to your app.
The instructions you followed are outdated. Can you let us know where you found them?
Up-to-date instructions are available here: http://developer.getpebble.com/2/mobile-app-guide/ios-guide.html
I checked out a working app from SVN. Want to test it in iphone simulator. But the building failed.
Ld /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de normal i386
cd /Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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.1.sdk -L/Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware/ZBarSDK -L/Users/ludwig/MySoftware_SVN/MySoftware/trunk/MobileClient/iOS/MySoftware -F/Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator -filelist /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Intermediates/MySoftware.build/Debug-iphonesimulator/MySoftware.build/Objects-normal/i386/MySoftware.de.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework Security -framework MessageUI -framework AudioToolbox -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreMedia -framework CoreVideo -framework QuartzCore -liconv -framework AVFoundation -lzbar -o /Users/ludwig/Library/Developer/Xcode/DerivedData/MySoftware-eclocsslmbcdgibhlruzhzsnyctb/Build/Products/Debug-iphonesimulator/MySoftware.de.app/MySoftware.de
ld: library not found for -lzbar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can somebody help? Or need more information?!
I am not able to add a screenshot..
in the overview of the "other sources" there is the dict ZBarSDK and inside there is a headers and a resources folder and a file:
libzbar.a but the filename is in Red!? and i am not able to open it. Is this maybe the reason?
There's a particular way to install ZBAR. Follow these instructions : http://zbar.sourceforge.net/iphone/sdkdoc/install.html
Although I am familiar to developing in Objective-C, I still consider myself a bit of a n00b when it comes to error interpretation. I working on an application for work that others are also working on. I believe we may have different versions of Xcode, and one developer has a PC (the others and I have a MacBook). I am using Xcode 4.5.1.
The Problem
I am getting the following Apple Mach-O Linker Error:
ld: truncated fat file. Slice from 68 to 2783300 is past end of file
with length 135 for architecture i386 clang: error: linker command
failed with exit code 1 (use -v to see invocation)
The full 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.platform/Developer/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/MyApp.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-min=5.1 -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/me/Documents/MyApp/trunk/build/Debug-iphonesimulator/MyApp.app/MyApp
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM
3.1svn) Target: i386-apple-darwin11.4.2 Thread 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 MobileCoreServices -weak_framework Accounts -weak_framework AdSupport
-weak_framework Social -framework CoreBluetooth -framework MediaPlayer -framework QuartzCore -framework 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 from 68 to 2783300 is past end of file with length 135 for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
I have found close to no documentation on this error. What's the problem? How do I resolve an error like this?
I read this answer somewhere,
Symbolic links to files and folders (in your case some framework) are turned into fat files when they are moved from MAC-OS/X to Windows. So whenever we copy-paste/checkout project frameworks from your MAC to windows or vice versa it gets changed, the files are modified in terms of symlinks.
So what you can do is just checkout your project files and replace the framework alone (please note the framework you are going to replace should be downloaded fresh or copied somewhere from a MAC , NOT WINDOWS).
Hope this helps someone!