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

9644
1
09-22-2015 10:57 PM
ShiminCai
Occasional Contributor II

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

0 Kudos
1 Reply
ShiminCai
Occasional Contributor II

Hi,

This problem has been already answered in this thread: Xcode 7 Building for iOS 9 . Sorry I overlooked it.

Cheers,

Shimin

0 Kudos