Undefined symbols for architecture arm6 - iOS utils - in Unity - ios

I am trying to build a Unity project in XCode, but am receiving the following errors. I've tried almost every strategy on this website, including:
making sure we are using ILCP22 instead of mono for backend scripting
setting code stripping/optimisation to low
manually trying to comment out any reference to these methods in assembly (led to a crash)
checking library/mic/camera permissions, adding descriptions
Why is this happening/how can I fix it?
Undefined symbols for architecture arm64:
"__RequestGalleryAuthorization", referenced from:
_iOsUtils__RequestGalleryAuthorization_mBD2C5275062BA53610A50A8F4683B25EB81D3A63 in Assembly-CSharp12.o
_iOsUtils_RequestGalleryAuthorization_mD03BD4D97054CA8632CE86039983138983BFED1A in Assembly-CSharp12.o
(maybe you meant: _iOsUtils__RequestGalleryAuthorization_mBD2C5275062BA53610A50A8F4683B25EB81D3A63)
"__HasGalleryAuthorization", referenced from:
_iOsUtils__HasGalleryAuthorization_m0413DA8F81E74F2A44BE14ED5296A7027BF53C7E in Assembly-CSharp12.o
_iOsUtils_HasGalleryAuthorization_m0C73D68A61862EB8E899F827B358EBEFF3BD26A9 in Assembly-CSharp12.o
(maybe you meant: _iOsUtils__HasGalleryAuthorization_m0413DA8F81E74F2A44BE14ED5296A7027BF53C7E)
"__AddImageToGallery", referenced from:
_iOsUtils__AddImageToGallery_mE6ABA6C00DF9DA06889B7A428DE1AF2F04589641 in Assembly-CSharp12.o
_iOsUtils_AddImageToGallery_m469B18281B4F123F31685F555708CC3A27F2DD3B in Assembly-CSharp12.o
(maybe you meant: _iOsUtils__AddImageToGallery_mE6ABA6C00DF9DA06889B7A428DE1AF2F04589641)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Related

iOS: Twitter-OAuth library architecture problems

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?

Podfile error: Undefined Symbols for Architecture arm64

I updated my cocoapods version to 1.0 and am now getting a slew of errors regarding architecture. This is what my errors look like:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ReachabilityManager.o
(maybe you meant: _OBJC_CLASS_$_ReachabilityManager)
"_OBJC_CLASS_$_PBJVision", referenced from:
objc-class-ref in NewSpinViewController.o
"_PBJVisionPhotoImageKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
"_kReachabilityChangedNotification", referenced from:
-[NoInternetViewController viewDidLoad] in NoInternetViewController.o
"_PBJVisionPhotoThumbnailKey", referenced from:
-[NewSpinViewController vision:capturedPhoto:error:] in NewSpinViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've spent hours trying to fix this by toggling settlings under build settings but nothing is working for me.
This is what I currently have for my Architectures
Anyone have any ideas?
Try this: delete derived data and compile again. Sometimes the pod libraries simply don't get compiled even you cleaned the project, this happened to me when I updated to cocoapods 1.0.1.

Bluetooth Related Linker Errors in XCode 6.1.1

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

Runtime error , bugs and issues iphone App

I am trying to add an AdManager File in my iphone app so that it has differernt types of ads. (revmob, adwhirl, chartboost etc). At the same time I want the In App-Purchase functionality as well. I am working correct on that but there is some issues and bugs which I don't understand what are, I even added all the required frameworks.
Undefined symbols for architecture i386:
"_OBJC_METACLASS_$_CDataScanner", referenced from:
_OBJC_METACLASS_$_CJSONScanner in CJSONScanner.o
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[RevMobStoreController openStoreWithITunesItemId:] in RevMobAds(RevMobStoreController.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in RevMobAds(RevMobStoreController.o)
"_OBJC_IVAR_$_CDataScanner.current", referenced from:
-[CJSONScanner scanNotQuoteCharactersIntoString:] in CJSONScanner.o
"_OBJC_CLASS_$_CDataScanner", referenced from:
l_OBJC_$_CATEGORY_CDataScanner_$_CDataScanner_Extensions in CDataScanner_Extensions.o
_OBJC_CLASS_$_CJSONScanner in CJSONScanner.o
"_OBJC_IVAR_$_CDataScanner.end", referenced from:
-[CJSONScanner scanNotQuoteCharactersIntoString:] in CJSONScanner.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you add the StoreKit framework?
That would certainly resolve the first couple of linker errors.

GData iPhone Archive Error

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.

Resources