AnsweredAssumed Answered

linker command failed with exit code 1 (use -v to see invocation)

Question asked by ShiminCai on Sep 22, 2015
Latest reply on Sep 22, 2015 by ShiminCai

Hi,

 

I'm migrating my project from Xcode 6.4 to Xcode 7.0 and encountered this error...

 

Ld /Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Products/Debug-iphoneos/FCMapApp.app/FCMapApp normal armv7

    cd /Users/shiminc/Projects/FCNSWGIS

    export IPHONEOS_DEPLOYMENT_TARGET=6.1

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Products/Debug-iphoneos -F/Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Products/Debug-iphoneos -F/Users/shiminc/Library/SDKs/ArcGIS/iOS -F/Users/shiminc/Library/SDKs/ArcGIS/iOS/Samples -F/Users/shiminc/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo -F/Users/shiminc/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo-Swift -F/Users/shiminc/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo/MapViewDemo -F/Users/shiminc/Library/SDKs/ArcGIS/iOS/Samples/MapViewDemo-Swift/MapViewDemo-Swift -F/Users/shiminc/Library/SDKs/ArcGIS -F/Users/shiminc/Library/SDKs/ArcGIS/iOS -filelist /Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Intermediates/FCMapApp.build/Debug-iphoneos/FCMapApp.build/Objects-normal/armv7/FCMapApp.LinkFileList -miphoneos-version-min=6.1 -dead_strip -fembed-bitcode-marker -ObjC -framework ArcGIS -l c++ -fobjc-arc -fobjc-link-runtime -framework ArcGIS -lc++ -lz -lsqlite3.0 -framework MessageUI -framework SystemConfiguration -framework Security -framework MobileCoreServices -framework MediaPlayer -framework OpenGLES -framework QuartzCore -framework CoreText -framework CoreLocation -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Intermediates/FCMapApp.build/Debug-iphoneos/FCMapApp.build/Objects-normal/armv7/FCMapApp_dependency_info.dat -o /Users/shiminc/Library/Developer/Xcode/DerivedData/FCMapApp-fipyenqiqxbltkgzayearhnydoga/Build/Products/Debug-iphoneos/FCMapApp.app/FCMapApp

 

ld: '/Users/shiminc/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/ArcGIS(libArcGISRT.a-armv7-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

Looks like something to do withe the SDK... I'm using SDK 10.2.4. However, It builds ok with the simulators and only happens with my iPad mini. Any ideas?

 

Thanks,

 

Shimin

Outcomes