I have run chart boost demo which have been provided at chart boost site.
It shows error like below,
ld: warning: ignoring file /Users/jeganselvaraj/Unity3D/SlotMachine_IOS/Libraries/libChartboost.a, missing required architecture i386 in file /Users/jeganselvaraj/Unity3D/SlotMachine_IOS/Libraries/libChartboost.a (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CBAnalytics", referenced from:
objc-class-ref in ChartBoostBinding.o
"_OBJC_CLASS_$_Chartboost", referenced from:
objc-class-ref in ChartBoostBinding.o
objc-class-ref in ChartBoostManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What can I do for this issue?
Seems like there is no libChartboost.a in your Xcode project's Libraries folder.
You need to ensure that file libChartboost.a is in directory Assets/Plugins/iOS. All files from Assets/Plugins/iOS are copied to the Xcode project automatically during Unity's build process. Note that subdirectories within Assets/Plugins/iOS are not considered.
Related
I am developing a static library for iOS, now I am testing my static library (libXYZ.a) with a test project, I am able to run it on device but when I am trying
to make archive of the test project I got some errors saying:
ld: warning: ignoring file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a, missing required architecture arm64 in file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_XYZ", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_XYZConfiguration", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I used the following command to build universal build:
lipo -create "libXYZSDK_simulator.a" "libXYZSDK_device.a" -output "libXYZSDK.a"
Please help me out to resolve this problem.
I know that CocoaSoundCloudAPI has no longer pull request support. But as per my project requirement it is necessary to use this api.
I'm following - https://github.com/soundcloud/CocoaSoundCloudAPI
I have created workspace and getting following WARNINGS and ERRORS
ld: warning: ignoring file /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libJSONKit.a, file was built for archive which is not the architecture being linked (x86_64): /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libJSONKit.a
ld: warning: ignoring file /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libOHAttributedLabel.a, file was built for archive which is not the architecture being linked (x86_64): /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libOHAttributedLabel.a
ld: warning: ignoring file /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libSoundCloudAPI.a, file was built for archive which is not the architecture being linked (x86_64): /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libSoundCloudAPI.a
ld: warning: ignoring file /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libSoundCloudUI.a, file was built for archive which is not the architecture being linked (x86_64): /Users/(account_name)/Library/Developer/Xcode/DerivedData/PrankWorkSpace-cckuzufjvkoglfdwnllxgiisuwot/Build/Products/Debug-iphonesimulator/libSoundCloudUI.a
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SCShareViewController", referenced from:
objc-class-ref in SplashVC.o
"_OBJC_CLASS_$_SCSoundCloud", referenced from:
objc-class-ref in AppDelegate.o
"_SCUICanceledErrorCode", referenced from:
___18-[SplashVC upload]_block_invoke in SplashVC.o
"_SCUIErrorDomain", referenced from:
___18-[SplashVC upload]_block_invoke in SplashVC.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note : I have followed all the steps given in git Doc.
anyone have idea about this kind of problem.
Thank You.
-- UPDATE --
I have configured my Target Build Settings like
Architecture -> $(ARCHS_STANDARD_32_64_BIT)
Build Active Architecture Only -> No
Other linker flags -> -all_load - ObjC
Always Search User Paths -> No
Header Search Paths -> recursive
Implicitly link objective-c runtime support -> No
I am developing a fake static framework. I build it and included it another sample application. The sample application is running fine on iPhone(ios 7.1), but it giving below errors when i run it on simulator
ld: warning: ignoring file /Users/awsuser8/Desktop/Test.framework/Test, file was built for archive which is not the architecture being linked (i386): /Users/awsuser8/Desktop/Test.framework/Test
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Test", referenced from:
objc-class-ref 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)
You can rebuild the library for the iOS Simulator and combine it using lipo with the ARM build of the library. Then the library will support x86 builds as well.
I am getting below warning
ld: warning: ignoring file [path]/libMAKit.a, missing required architecture i386 in file Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MAViewController", referenced from: _OBJC_CLASS_$_AnalysisViewController in AnalysisViewController.o
"_OBJC_CLASS_$_MAChartView", referenced from: objc-class-ref in AnalysisViewController.o
"_OBJC_CLASS_$_MAKitTheme_WelterWeightDark", referenced from: objc-class-ref in AnalysisViewController.o
"_OBJC_METACLASS_$_MAViewController", referenced from: _OBJC_METACLASS_$_AnalysisViewController in AnalysisViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like libMAKit.a not have simulator (i386) architecture, if you have source you can rebuild it but frequently third party libs ships without i386 architecture and can be usable only on real device
Try to find some missing files (red letters) like images. We spend most of one day just to figure it out that I didn't had all the images locally. (Sorry if it's bad english)
I'm using xcode 5. I just got some errors saying:
ld: warning: ignoring file /Users/wog-khatzpetalio/Desktop/LiveGateApp/NoInterfaceBuilder/LiveGate/Parse.framework/Parse, missing required architecture x86_64 in file /Users/wog-khatzpetalio/Desktop/LiveGateApp/NoInterfaceBuilder/LiveGate/Parse.framework/Parse (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFObject", referenced from:
objc-class-ref in LiveGate.o
"_OBJC_CLASS_$_PFQuery", referenced from:
objc-class-ref in LiveGate.o
"_OBJC_CLASS_$_Parse", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My App is working in all simulator except for iPhone 64 bit.
What should be the possible cause of this error?
Change your architectures into this one
It means you do not have the Parse library properly included in your project. It's possible that something is preventing it from linking, say if the parse library did not support armv64 and you were using the default set of architectures in your project.