I get this error after using cocoapods with AWS SDK IOS:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AWSInfo", referenced from:
objc-class-ref in libAWSCognitoIdentityProvider.a(AWSCognitoIdentityProviderService.o)
objc-class-ref in libAWSIoT.a(AWSIoTDataManager.o)
objc-class-ref in libAWSIoT.a(AWSIoTDataService.o)
objc-class-ref in libAWSIoT.a(AWSIoTManager.o)
objc-class-ref in libAWSIoT.a(AWSIoTService.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 solved my own problem.
When i created the project i selected to include unit tests for the project.
For whatever reason this conflicted with the cocoapod installation. When i created a new project without unit tests everything compiled correctly.
This could be a conflict between the two or I did not configure something properly either way it seems like units tests and cocoapods need some extra tinkering with.
Related
I have follow the Sender synth example, with XCode 10.1, Audiokit 4.5.5. But when I try to build it (part Audiobus and Integration), it fails with this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ABPort", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudiobusController", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudioSenderPort", referenced from:
objc-class-ref in Audiobus.o
"_OBJC_CLASS_$_ABAudioFilterPort", referenced from:
objc-class-ref in Audiobus.o
"_ABConnectionsChangedNotification", referenced from:
SenderSynth.Audiobus.(startObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
SenderSynth.Audiobus.(stopObservingAudiobusConnections in _37936C4CF5A242669D2CAF61EB84EA24)() -> () in Audiobus.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to build with my iphone SE connected via usb and with Audiobus app installed on it.
I tried also targeting simulator, but same error occurs with x86_64 rather than arm64.
I searched and try many things but did not find any solution. I read many times the tutorial but I don't see anything I forgot.
What is missing. Could someone help me please?
These are symbols from the AudioBus SDK; you need to link with the SDK and using your API key to resolve these errors.
If you have this issue, try adding "$(inherited)" to your targets build settings under "other linker flags".
https://heroes.audiob.us/discussion/706/sendersynth-tutorial-audiobus-error/p1
I have an old objective-c application that can't run in iOS 11.0 devices. To solve this issue I have changed the architecture (from the build settings) to the standard architecture (the same as the answer of this SO issue) and the Build Archive Architecture Only is having YES for the Debug and NO for the others. The Twitter-OAuth library is included in this project. The build always fails because of those errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_OARequestParameter", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAMutableURLRequest", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OADataFetcher", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAToken", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAConsumer", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The version of this library is old (its architecture is not supporting 64 bit). When I replace it with the new version I got a lot of errors between them the errors on the top. I tried to keep the old version, I replaced the libOAuth.a with the new one and all the files mentioned in the errors with the new ones. But I'm still getting the same problem. I know that the best solution is to use the new Twitter SDK (via Fabric) but I wonder if I can keep this library and solve those architecture problems.
Can anyone guide me please?
I am using TwitterLibrary in one of my applications, Twitter log-in is working perfectly but as per the apple's requirement new apps can be submitted with 64bit support and build with IOS8+ SDK, so for this I added "armv7 armv7s arm64" in valid architecture in build setting in my target and project.After adding "arm64" I am facing following erros
"_OBJC_CLASS_$_OAConsumer", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OADataFetcher", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAMutableURLRequest", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OARequestParameter", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
"_OBJC_CLASS_$_OAToken", referenced from:
objc-class-ref in SA_OAuthTwitterEngine.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: unable to open executable '/Users/my-name/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/MYAPP.app/MYAPP'
I thing twitter library does not provide 64 bit support,its my guess i am not sure about it, but how can I remove twitter errors is there any way to short these errors?
Thanks a lot in advance..
Finally come to a solution Added latest Twitter-IOS-SDK using Twitter's new Xcode plugin named "fabric". New SDK is compatible with 64bit.
https://dev.twitter.com/twitter-kit/ios/configure
I'm relatively new to iOS development. I'm not sure what to do about resolving the following errors that I believe are due to referencing a bluetooth library. What can I do to debug/fix this?
Undefined symbols for architecture armv7:
"_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from:
_nclSStartScan in libNCLiOS.a(nclCb.o)
"_CBAdvertisementDataManufacturerDataKey", referenced from:
-[Boss centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in libNCLiOS.a(nclCb.o)
"_OBJC_CLASS_$_CBUUID", referenced from:
objc-class-ref in libNCLiOS.a(nclCb.o)
"_OBJC_CLASS_$_CBCentralManager", referenced from:
objc-class-ref in libNCLiOS.a(nclCb.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I haven't done Bluetooth related development on IOS but the messages might be related to the missing Bluetooth framework in the project files.
Have you added them ?
IOBluetooth.framework
IOBluetoothUI.framework
Following the instructions here: http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
I added GData to my iOS 5 project. When it's time to archive the project I get the following error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked the build settings for the GData.xcodeproj -> GDataTouchStaticLib, and this is what I set them to as seen by this pic: )
Any help is appreciated, to help get my project archived.
You haven't linked the libraries properly. Make sure you follow the directions carefully when it comes to adding the library paths. See Undefined symbols for architecture armv7 for more information.