Building Sinch from CocoaPods - ios

Has any tried building the latest Sinch (sinch.com) SDK through Cocoapods? Version 3.0.0.
I'm getting the following:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SINOutgoingMessage", referenced from:
objc-class-ref in MessageThreadViewController.o
"_OBJC_CLASS_$_Sinch", referenced from:
objc-class-ref in SinchClient.o
(maybe you meant: _OBJC_CLASS_$_SinchClient)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And wondering if anyone knows the fix?
Thanks!
Charlie

Update, we have now released arm64 build so for new projects you should not have to change archs anymore.
Update you pods build settings and you should be fine.
Christan

You do not have to do the things belove anymore. It is fixed by Sinch. Check the cjensen's answer.
In here there is an official tutorail from Sinch and it says
Try removing i386 from Architectures and run again.

Related

MLKit iOS: Undefined symbols for architecture armv7

I have been trying to integrate MLKit into CardIO using cocoapod. I fixed all the warnings by cocoapod and CardIO was built successfully. However, when I link CardIO to my app and build, this error comes out. I searched all over the internet and tried different kind of approaches suggested by people but still to no avail. Is there any step or setting I might have missed during integration/linking?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FIRVisionImage", referenced from:
objc-class-ref in libCardIO.a(CardIOView.o)
"_OBJC_CLASS_$_FIRVision", referenced from:
objc-class-ref in libCardIO.a(CardIOView.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added $(inherited) in Other Linker flags, Header search paths, Framework search Paths, Library search Paths in "Target -> Build Settings" resolved the issue! Happy Coding!

I try to integration with zooz sdk in ios but it give some error, so please provide me a right solution

I try to integration with zooz sdk in ios but it give some error, so please provide me a right solution.
Ignoring File
/Users/xyz/Desktop/Zooz.com/ZooZSDK.embeddedframework/ZooZSDK.framework/ZooZSDK,
missing required architecture x86_64 in file
/Users/xyz/Desktop/Zooz.com/ZooZSDK.embeddedframework/ZooZSDK.framework/ZooZSDK
(3 slices) Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZooZ", referenced from:
objc-class-ref in DemoZooZSDKViewController.o "_OBJC_CLASS_$_ZooZInvoiceItem", referenced from:
objc-class-ref in DemoZooZSDKViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Experienced the same issue when following the installation instruction on their Github. Finally, I've downloaded the source code and built using Carthage for all architectures. This allowed me to run on simulator and physical device.

Undefined symbols for architecture armv7, ld: symbol(s) not found for architecture armv7

I am implementing google cloud messaging in my project, and i have setup cocoapods in my project. But when I run the project it generate error, this error is
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SKProductsRequest", referenced from:
objc-class-ref in libGGLCore.a(GMRProductsRequest.o)
"_OBJC_CLASS_$_SKPaymentQueue", referenced from:
objc-class-ref in libGGLCore.a(GMRInAppPurchaseTransactionReporter.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation). I am using Xcode 7 and swift 2 and my pod version is 1.0.0.beta.2
Please help me, I am not able to solve this issue.
Read this post... After update to Xcode 5 - ld: symbol(s) not found for architecture armv7 or armv7s linker error
Basically you need to remove Build Active Architecture Only from all your static libraries' project build settings. Xcode added this with their update as it makes Xcode compile faster since it only requires Xcode to compile for the connected device, but it is causing problems in your case so you may remove it
I have add GameKit.framework and StoreKit.framework into Target>>General>>Linked Frameworks and Libraries.
clean project and build project.An error is solved

iOS Paypal SDK Integration Compilation issues

I'm trying to get Paypal's iOS SDK working. I have followed the instructions in the readme but the build fails with the error below
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_NSExtensionItem", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_OBJC_CLASS_$_NSItemProvider", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_kUTTypePropertyList", referenced from:
-[OnePasswordExtension processExtensionItem:completion:] in libPayPalMobile.a(OnePasswordExtension.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This same error occurs when building the sample application, so I have ruled out my project settings.
Can anybody tell me what I've missed?
add the path of the library in the "Library Search Path"
$(PROJECT_DIR)/XXXX/MyFramework/GoogleAdWords
EDIT : Maybe the sample is wrong ...
This was down to the new version of the Paypal API requiring Xcode 6, while I was attempting to compile on Xcode 5.

Undefined symbols for architecture armv7 pjmedia pjsip

I just add library and framework of PJSIP to my XCODE project such as Simulator, Device and Third Party but when I build my project it show error:
Undefined symbols for architecture armv7:
"_pjmedia_get_video_format_info", referenced from:
_ios_factory_create_stream in libpjmedia-videodev-arm-apple-darwin9.a(ios_dev.o)
"_pjmedia_format_get_video_format_detail", referenced from:
_ios_factory_create_stream in libpjmedia-videodev-arm-apple-darwin9.a(ios_dev.o)
"_pjmedia_format_init_video", referenced from:
_ios_factory_init in libpjmedia-videodev-arm-apple-darwin9.a(ios_dev.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I try to Google the solution but it seem not help. Please share your idea, I think i miss some configuration or library. Thanks in advance.
You should take a look in to this question asked on SO earlier
Trouble of compilation on xcode4.2 for pjsip

Resources