I have downloaded Telerik's IOS UI trial and opened its example project in it. It runs properly on simulator but when I want to run on the real device it gives me error.
Ld
/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos/TelerikUIExamples.app/TelerikUIExamples
normal arm64
cd "/Users/gg/Documents/Telerik/UI for iOS Q2 2014/TelerikUIExamples"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
-L/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos
-F/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos
-F. -FTelerikUIExamples -FTelerikUIExamples/Images.xcassets -FTelerikUIExamples/Images.xcassets/AppIcon.appiconset -FTelerikUIExamples/Images.xcassets/calendar_cell.imageset -FTelerikUIExamples/Images.xcassets/calendar_current_cell.imageset -FTelerikUIExamples/Images.xcassets/calendar_header.imageset -FTelerikUIExamples/Images.xcassets/calendar_selected_cell.imageset -FTelerikUIExamples/Images.xcassets/LaunchImage.launchimage -FTelerikUIExamples/Images.xcassets/logo.imageset -FTelerikUIExamples/Images.xcassets/menu.imageset -FTelerikUIExamples/Images.xcassets/pattern1.imageset -filelist /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Intermediates/TelerikUIExamples.build/Debug-iphoneos/TelerikUIExamples.build/Objects-normal/arm64/TelerikUIExamples.LinkFileList
-dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework SystemConfiguration -lsqlite3.0 -framework EventKit -framework EventKitUI -framework TelerikUI -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Intermediates/TelerikUIExamples.build/Debug-iphoneos/TelerikUIExamples.build/Objects-normal/arm64/TelerikUIExamples_dependency_info.dat
-o /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos/TelerikUIExamples.app/TelerikUIExamples
ld: warning: ignoring file ./TelerikUI.framework/TelerikUI, missing
required architecture arm64 in file ./TelerikUI.framework/TelerikUI (3
slices) Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_TKChartPaletteItem", referenced from:
objc-class-ref in Customize.o "_OBJC_CLASS_$_TKLinearGradientFill", referenced from:
objc-class-ref in Customize.o "_OBJC_CLASS_$_TKChartOhlcSeries", referenced from:
objc-class-ref in FinancialChart.o "_OBJC_CLASS_$_TKChartCandlestickSeries", referenced from:
objc-class-ref in IndicatorsViewController.o
objc-class-ref in FinancialChart.o
..
.. and so on
Related
I'm getting the following linker error:
Ld /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator/Tweepr.app/Tweepr normal x86_64
cd /Users/premedios/Developer/Objective-C/tweepr-3
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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator -F/Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator -F/Users/premedios/Developer/Objective-C/tweepr-3/iUnfollow/Classes/Library -filelist /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Intermediates/Tweepr.build/Debug-iphonesimulator/Tweepr.build/Objects-normal/x86_64/Tweepr.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Accelerate -framework Social -framework Security -framework StoreKit -framework ImageIO -framework MapKit -framework CoreText -framework CoreTelephony -lz -framework MobileCoreServices -framework Accounts -framework Twitter -framework CoreData -framework SystemConfiguration -framework CoreFoundation -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -lPods -Xlinker -dependency_info -Xlinker /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Intermediates/Tweepr.build/Debug-iphonesimulator/Tweepr.build/Objects-normal/x86_64/Tweepr_dependency_info.dat -o /Users/premedios/Library/Developer/Xcode/DerivedData/Tweepr-chpytouktuxjlfehpsynwphlgwzo/Build/Products/Debug-iphonesimulator/Tweepr.app/Tweepr
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_STTwitterAPI", referenced from:
objc-class-ref in NetworkManager.o
"_OBJC_CLASS_$_SVProgressHUD", referenced from:
objc-class-ref in Utils.o
objc-class-ref in NetworkManager.o
objc-class-ref in TPRIAPManager.o
"_OBJC_CLASS_$_SimpleAuth", referenced from:
objc-class-ref in TPRAppDelegate.o
objc-class-ref in UserLoadingRoutine.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried "Clean Build Folder", but the error persists. Anyone have any other ideas on the cause of this?
Trying to build the demo app contained in the DragonMobileSDK_1.4.9 download, I get 62 undefined symbols referenced from libSpeechKit.a-x86_64-master.o, all prefixed with _nmsp_vector_. Using Xcode 5.1.
The app compiles okay for the non-64-bit simulator devices. When I searched for answers I saw similar posts but they were problems in user apps, resolved by linking against the same libraries as the demo app. In this case it's the demo app itself that fails.
The build output looks like this:
Ld /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/ Products/Debug-iphonesimulator/Vocalizer.app/Vocalizer normal x86_64
cd /Users/user13/Developer/DragonMobileSDK_1.4.9/DragonMobileVocalizer
export IPHONEOS_DEPLOYMENT_TARGET=7.1
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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator -F/Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator -F/Users/user13/Developer/DragonMobileSDK_1.4.9/DragonMobileVocalizer -filelist /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Intermediates/DMVocalizer.build/Debug-iphonesimulator/DMVocalizer.build/Objects-normal/x86_64/Vocalizer.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework SpeechKit -framework Foundation -framework UIKit -framework CoreGraphics -framework AudioToolbox -framework SystemConfiguration -framework AVFoundation -framework CFNetwork -framework Security -Xlinker -dependency_info -Xlinker /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Intermediates/DMVocalizer.build/Debug-iphonesimulator/DMVocalizer.build/Objects-normal/x86_64/Vocalizer_dependency_info.dat -o /Users/user13/Library/Developer/Xcode/DerivedData/DMVocalizer-gighyiitifpefcfcyeoylguzztkm/Build/Products/Debug-iphonesimulator/Vocalizer.app/Vocalizer
Undefined symbols for architecture x86_64:
"_nmsp_audio_player_create", referenced from:
l093 in SpeechKit(libSpeechKit.a-x86_64-master.o)
"_nmsp_audio_player_delete", referenced from:
l017 in SpeechKit(libSpeechKit.a-x86_64-master.o)
"_nmsp_audio_player_getAudioSink", referenced from:
l027 in SpeechKit(libSpeechKit.a-x86_64-master.o
…
l069 in SpeechKit(libSpeechKit.a-x86_64-master.o)
l112 in SpeechKit(libSpeechKit.a-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have to left only: armv7 armv7s i386 architectures for your project/demo in Architectures and Valid Architectures manually.
I've done a lot of searching around so far on this problem, but no proposed solution has worked for me. When running my program, I need to be able to load in a video file to an opencv VideoCapture object so that I can then display it frame by frame. The line
vidCap = cv::VideoCapture::VideoCapture(FILENAME);
causes 4 linker errors:
Undefined symbols for architecture i386:
"cv::VideoCapture::VideoCapture(cv::String const&)", referenced from:
-[ViewController viewDidLoad] in ViewController.o
"cv::String::deallocate()", referenced from:
cv::String::~String() in ViewController.o
"cv::String::allocate(unsigned long)", referenced from:
cv::String::String(char const*) in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and nothing has worked for me so far to fix this. When I change the C++ compiler from libc++ to libstdc++ then I get a "lexical or preprocessor issue: 'cstdint' file not found"
Can anyone offer me assistance on this?
Edit:
Ld /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator/ChickenTracker.app/ChickenTracker normal i386
cd /Users/max/Documents/ChickenTracker
setenv IPHONEOS_DEPLOYMENT_TARGET 7.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/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator -L/Users/max/Documents/ChickenTracker -L/Users/max/Downloads/ios/build/iPhoneSimulator-x86_64/modules/highgui/UninstalledProducts -L/Users/max/Documents/opencv-2.4.7/build/lib -F/Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator -F/Users/max/Downloads/ios -F/Users/max/Documents/ChickenTracker -filelist /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Intermediates/ChickenTracker.build/Debug-iphonesimulator/ChickenTracker.build/Objects-normal/i386/ChickenTracker.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -lc++ -framework opencv2 -framework Accelerate -framework CoreImage -framework QuartzCore -framework AssetsLibrary -framework ImageIO -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Intermediates/ChickenTracker.build/Debug-iphonesimulator/ChickenTracker.build/Objects-normal/i386/ChickenTracker_dependency_info.dat -o /Users/max/Library/Developer/Xcode/DerivedData/ChickenTracker-frcayvqpvtapigflaqrveexxtkud/Build/Products/Debug-iphonesimulator/ChickenTracker.app/ChickenTracker
I have just updated my Xcode to version 5.0.2
And after updating, all my previously running apps (*perfectly running and archiving) are now giving following errors when I try to archive them for testing on my devices (not connected devices).
Ld /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test normal armv7s
cd /Users/dharammalik/Documents/PhonegapWorkspace/lite_test
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -F/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -filelist /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -all_load -Obj-C -fobjc-link-runtime -miphoneos-version-min=5.0 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test_dependency_info.dat -o /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test
ld: warning: ignoring file /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tried changing the Architectures, but nothing worked. Any idea how to resolve these issues? They were not there at all in the previous version of Xcode I had.
Remove armv7s from valid architectures section and it will work.
Build Settings --> Architectures --> Valid Architectures
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5
I had the same problem and the issue was that I have accidently imported a .m file instead of .h in an implementation file - hope it helps
libCordova.a, file was built for archive which is not the architecture being linked (armv7s)
Looks like your copy of libCordova framework does not contain a armv7s binary.
You need to change the Architectures in the CordovaLib project, not in your lite_test project. I assume when you said you tried changing the Architectures, you only tried in your project and not the Cordova project (since changing in Cordova worked for me) . Remember that Cordova is a dependent project and is compiled into the binary each time you run.
Hi everybody.I has a problem when I building a xcode project contains BSYahooFinance classes.
The details of this problem:
Ld
/Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator/exchange.app/exchange
normal i386
cd /Users/yxu/Documents/project/exchange
setenv IPHONEOS_DEPLOYMENT_TARGET 6.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"
/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/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator
-F/Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator
-filelist /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Intermediates/exchange.build/Debug-iphonesimulator/exchange.build/Objects-normal/i386/exchange.LinkFileList
-Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreData -framework CoreFoundation -lxml2 -lz -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork
-framework UIKit -framework Foundation -framework CoreGraphics -o /Users/yxu/Library/Developer/Xcode/DerivedData/exchange-avxwiknpprmcnlhgjynxlmbwglpm/Build/Products/Debug-iphonesimulator/exchange.app/exchange
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SBJsonParser", referenced from:
objc-class-ref in YFStockSymbolSearch.o
objc-class-ref in YFStockDetailsLoader.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
I have found many answers like "find the .m files are in your project" or "add the framworks needed" from google.I tried them all, but still couldn't solve this problem. Dose anybody of you can give me some suggestions or seen this problem before?
You need to link in a fat binary with the i386 object files for SBJsonParser into your target.