Linker errors while using the FirebaseCrashlytics(FIRCrashlytics) framework in iOS - crashlytics

I am facing the linker errors while using the FirebaseCrashlytics(FIRCrashlytics) framework.
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FIRCrashlytics", referenced from:
      objc-class-ref in xxxx.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 am using the FirebaseAnalytics as well. But I didn't face any issue with this framework events are tracking as expected. I have added this Framework (FirebaseCrashlytics) to the same targets as FirebaseAnalytics. But with FirebaseCrashlytics framework I am facing this issue.

Other Link Flags
Try to add in "Other Link Flags" all flags like in the image. This helped me.

Related

Apple Mach-O Linker Error for arm64

I know there are a few topics on this, but none seem to do the trick;
I'm testing to the device and I get 5 errors, all Apple Mach-O Linker Errors. The code looks likes this;
Any thoughts? I've tried to play around with the Active Architecture but nothing seems to work.
Thank you!
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in libCordova.a(CDVURLProtocol.o)
"_kUTTagClassMIMEType", referenced from:
___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
"_OBJC_CLASS_$_CLLocation", referenced from:
l_OBJC_$_CATEGORY_CLLocation_$_JSONMethods in libCordova.a(CDVShared.o)
"_UTTypeCopyPreferredTagWithClass", referenced from:
___30-[CDVURLProtocol startLoading]_block_invoke in libCordova.a(CDVURLProtocol.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
By looking at your errors I think you need to import some frameworks , Just try to import following frameworks :
CoreLocation
ALAssetsLibrary
MobileCoreServices.framework

"_OBJC_CLASS_$_MSClient", referenced from: objc-class-ref in AuthService.o

I git clone this ios project form
https://github.com/Azure/azure-mobile-services. That project is an example of using azure mobile service on ios. But when I compile it under XCode6, I get the follwing error:
ld: warning: ignoring file
/Users/JOHN/Src/iOS-MobileServices-Authentication/source/client/AuthenticationDemo/WindowsAzureMobileServices.framework/WindowsAzureMobileServices,
missing required architecture x86_64 in file
/Users/JOHN/Src/iOS-MobileServices-Authentication/source/client/AuthenticationDemo/WindowsAzureMobileServices.framework/WindowsAzureMobileServices
(3 slices) Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MSClient", referenced from:
objc-class-ref in AuthService.o "_OBJC_CLASS_$_MSUser", referenced from:
objc-class-ref in AuthService.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
Does anyone know how to fix this?
Thank you.
In your project, build settings, set your valid architectures to just be "Standard Architecture (armv7, armv7s)" and not "Standard architectures (including 64-bit)"
and also set build active architecture only to No in all cases ie debug and release.
Currently the SDK is built with support for 5.1 which doesn't support a 64 bit build.

Undefined symbols for architecture armv7s dealing with Appboy iOS integration

I am trying to integrate appboy into my Xcode 5.1.1 project. I have followed all the steps on their SDK integration page found here: http://documentation.appboy.com/SDK_Integration/iOS. I was able to successfully install the pods, but when I try to compile and run my project I get the following errors:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_Appboy", referenced from:
objc-class-ref in CAppDelegate.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The code causing this issue it the code to upgrade the app delegate found in CAppDelegate.m under the method application:didFinishLaunchingWithOptions:
[Appboy startWithApiKey:#"(I PUT MY API KEY HERE)"
inApplication:application
withLaunchOptions:launchOptions];
Make sure that your app target includes "$(inherited)" if it is overriding any of the settings of Pods.xcconfig. You can check this under Build Settings >> Your App Target >> Other Linker Flags.
If you need any additional support on this issue, feel free to contact support#appboy.com.

"_OBJC_CLASS_$_",referenced from:

Hello i am getting the following errors and warnings if i build the program on simulator,but if i run it on the real device these things disappears?why do i get this?any idea?
ld: warning: ignoring file /Users/interaxisnetworks/Desktop/Test/TestProg/audiocall/PortSIPLib.framework/PortSIPLib, missing required architecture x86_64 in file /Users/interaxisnetworks/Desktop/Test/TestProg/audiocall/PortSIPLib.framework/PortSIPLib (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PortSIPSDK", 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)
Once i run the app on phone,i am not getting these warnings at all.But sometimes when i open the program and do build on simulator i get these errors and warnings.
i have gone through answers for similar problems,added app delegate.m in build settings,still these errors are coming.
The PortSIPLib.framework you tried to link your app with seems to be iOS only. You should ask the provider of the framework for a binary that is suitable for the simulator. If he can't or won't provide one, then there is nothing much you can do, I'm afraid.

_CC_RADIANS_TO_DEGREES error with architecture i386

I am working to rotate a sprite that is attached to a CPbody.
I am using this code
[shape->data setRotation:(float) CC_RADIANS_TO_DEGREES( -body->a )];
When I run this code I get this error
Undefined symbols for architecture i386:
"_CC_RADIANS_TO_DEGREES", referenced from:
_updateShape in GamePlay.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Any ideas on why this is happening, Iv worked for a while trying to get around this and can't
thanks for any help
You are not linking in Cocos2d for the i386 architecture. You could check which frameworks you are linking within your project.
Have you used the cocos2d template to create the project in the first place?
Can your app run on the device instead of the simulator?