_CC_RADIANS_TO_DEGREES error with architecture i386 - objective-c

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?

Related

Unable to access the classes from a custom swift framwork in iOS

I have created a swift framework which contains Obj C classes, and I am trying to use it in my demo app (written in obj c) using development Pods (local cocoa pods), I could able to import the Headers, and I could able to call the methods which are in the framework, but I am getting the following error while compiling the demo app
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ClassName", 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)
How do I resolve this? any suggestion would be appeciated
Updates: Define Module is set to YES in framework's build settings, Under Packaging

GPUImage issues running on simulator

So I've been trying to get GPUImage library to work in a project, and whilst it works on the device, does not work on simulator. I've tried in Xcode 5, using both Retina and non-retina simulators and get the following error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPUImageBuffer", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageVideoCamera", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageView", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageiOSBlurFilter", referenced from:
objc-class-ref in StartViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My Build Settings are as follows;
I need for this to run on simulator as well as on device. I have tried making Build Active Architecture Only NO, as well as playing around with Valid Architectures, to have armv7 by itself, armv7 and armv7s, and just armv64, but to no avail.
Any help would be amazing.
Thanks in advance
Build Phases -> Link Binary With Libraries ...then add "GPUImage.framework", "libGPUImage.a"
I just deleted "arm64" from "Valid Architectures" and it works for me now. Maybe it helps.

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.

Building OS X Native App With FireBase Template and Xcode 4.6.3

I am trying to build a native OS X app with the new Firebase Templates:
Firebase Gitub
I am encountering linker errors, that make me think the definition of the class FServerValues is missing:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FServerValues", referenced from:
objc-class-ref in Firebase(FRepo.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has anyone else tried to build a simple project using the Firebase Templates in Xcode 4.6.3? If so did you get these errors? Were you able to fix them?
Should be fixed now. Please replace your copy of Firebase.framework with the latest one, available here: https://www.firebase.com/docs/downloads.html
Apologies for the oversight, and please let me know if you run in to any more trouble.