Is it possible to use AFNetworking in a TodayExtension? - ios

I'm using AFNetworking inside my iOS App without any problem. But now, I need to perform some API calls to my backend from my TodayExtension.
When I have tried to add any kind of AFNetworking class to my TodayExtension target, the compiler crash.
Undefined symbols for architecture armv7:
"_AFNetworkingErrorDomain", referenced from:
-[AFHTTPRequestOperation error] in AFHTTPRequestOperation.o
"_AFNetworkingOperationFailingURLResponseErrorKey", referenced from:
-[AFHTTPRequestOperation error] in AFHTTPRequestOperation.o
"_AFNetworkingOperationFailingURLRequestErrorKey", referenced from:
-[AFHTTPRequestOperation error] in AFHTTPRequestOperation.o
"_OBJC_METACLASS_$_AFURLConnectionOperation", referenced from:
_OBJC_METACLASS_$_AFHTTPRequestOperation in AFHTTPRequestOperation.o
"_OBJC_CLASS_$_AFURLConnectionOperation", referenced from:
_OBJC_CLASS_$_AFHTTPRequestOperation in AFHTTPRequestOperation.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there any way to use it? What is the best way to call my API from TodayExtension? Maybe using NSURLSession?

Related

Undefined symbols for architecture arm6 - iOS utils - in Unity

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)

Add card.io in Custom framework face below issue

I want to create a custom framework but also want to add card.io framework into my custom framework. So, anyone have an idea to create this in proper way. If yes then please provide me any idea or demo if possible.Currently I facing below error at the build time.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CardIOPaymentViewController", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_CardIOUtilities", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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.

IOS 5.0 ADDPlus implementation issue-

When i am trying to implement share through AddPlus , following error displayed. what can i do? Anybody knows?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_Facebook", referenced from:
objc-class-ref in libAddThis.a(ATFacebook.o)
"_OBJC_CLASS_$_ATReachability", referenced from:
objc-class-ref in libAddThis.a(ATGenericUtility.o)
"_OBJC_CLASS_$_SBJSON", referenced from:
objc-class-ref in libAddThis.a(ATTwitter.o)
objc-class-ref in libAddThis.a(ATWebServiceAPI.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Have you checked all your frameworks are properly referenced ? if I am not mistaken the following are required for addThis:
Security.framework,
CoreData.framework,
SystemConfiguration.framework,
MessageUI.framework,
Twitter.framework,
the following are needed for the new facebook SDK also set them as optional for versions prior to ios6
Social.framework,
AdSupport.framework,
Accounts.framework

Resources