When adding iRate to my app I get this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_iRate", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sounds like when you added the .m file to your project, it wasn't assigned to your target. Select iRate.m in the project navigator. Then bring up the utilities view on the right side of Xcode. Under Target Membership, make sure your app's target is checked. Try the build again.
Related
I'm trying to implement ios-oauthconsumer
but I'm getting this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_OAMutableURLRequest", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_OAConsumer", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to add the files following this solution but Xcode re-adds the file to the project. For example:
Any of you knows a way were I can add the files to the "Compile Sources" without having to re-add the file?
I'll really appreciated you help.
Make sure that each source file that needs to be linked is part of the Compile Sources section of your target. You can verify this by selecting your project in Navigator pane (as shown in your screenshot) and expanding the section shown here:
Xcode Compile Sources
You can also verify this by selecting the files and viewing their target membership in the Utilities pane in xcode.
Target Membership
Hello I am currently working on an IOS app in xcode 6. I am getting the following error when archiving the application. It runs successfully when built on the emulator. After further inspection I've found this specific error message while compiling each piece of code step-by-step in the terminal.
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBLoginView", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBProfilePictureView", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I believe you should go to your project settings, then your target and ensure you set the Architectures and Valid Architectures to what you see in the below image, the first one is selectable through Xcode while you should ensure you set the second one manually.
I faced the same problem while runnning the project.
Go to Build settings -- > Build architecture only
to set
Debug - YES
Release - NO
Add --> Other linker flag: - objc, -lc++, $(inherited)
clean and run the project. It was fixed for me !
I am new with XCode and iOS. I want to create a BD at a remote web service.
My problem is with this error:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CJSONDeserializer", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have a target, with the group of project with viewController.h and .m And other group with JSON libraries. Maybe, i have to configure something. I don't know.
It's very similar:
Select the project in the project navigator.
Select the Target in the detail view.
Select the Build Phase tab.
Expand the Compiled Sources section
Add the file CJSONDeserializer.m if it is not present there.
This will hopefully solve your problem
I'm using Reachability on my project to get the type of connection used, but an error has ocurred.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ContributionViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know what to do... my project is for iOS 4.3 and I've never had this kind of problem before.
Thx
Did you include the reachability framework in your projects linked libraries ? You can confirm by clicking on your project file on the file list and checking the build phases tab. It should be listed in the linked library section,
I have an error like this
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can you solve this problem? Please help me.
Find the file ViewController.m in your project and select it.
Use the properties inspector (Apple-Option-1) to ensure that it's added to your target membership whatever that target may be. It will need have a tick next to the target.