Undefined symbols for armv6 architecture, Update for iOS 4.3

I am upgrading an iOS 4.2 application to 4.3 using the new xcode4. Without any changes, apart from installing iOS before 4.3, I created the rights and left!

The message I get is:

Undefined symbols for architecture armv6:"function", referenced from: 

Ive tried to clean up the project by reinstalling xcode. I also uninstalled the xcode4 demo. I also tried installing Optimized armv7.

I would be very happy for the help, I'm stuck. In fact.

Thank you very well in advance!

+8
ios objective-c iphone xcode ios4
source share
8 answers

For this type of error, this is what I usually see:

  Undefined symbols for architecture armv6: "_OBJC_CLASS_$_MyCustomController", referenced from: objc-class-ref in SomeOtherController.o ld: symbol(s) not found for architecture armv6 

Almost every time I see this error, it is caused by hidden / invisible characters in the import statement in SomeOtherController.h or SomeOtherController.m . So, look at both the .h and .m files, find the line that looks like this:

 #import "MyCustomController.h" 

Delete this line and retype it (do not copy / paste it - you just clear the hidden hidden character).

+10
source share

This is how I got this problem:

I added .h , .m and NIB from another project by dragging them into my project navigator. Xcode did not append them to assembly lines properly.

My solution for this problem:

enter image description here

  • Click on the project icon
  • Go to "Target" in the navigator menu.
  • Click the Build Phases tab
  • Add the .m file to Compile Sources (either drag it or use the + button).
  • Add the .xib or storyboard file to Copy Package Resources
  • Clean and build
+12
source share

Click on the name of your project in the navigation window, select the goal you are building against, go to the build phase, make sure that one Xcode tells you what is missing there.

+8
source share

I had the same issue in Xcode5 for iOS7 using the TestFlight SDK. My problem was that for "Build Active Architecture Only" only Debug was configured.

You can find the parameter under 'YourProject' β†’ 'Build Settings' β†’ 'Architectures' Set the Release parameter to Yes.

This solved my problem - I hope this helps too! :)

+1
source share

I had this problem and I just solved it. It was a simple typo in the function name (forgot one letter) that caused the problem in my case.

0
source share

I had the same issue in Xcode5 for iOS7 using the TestFlight SDK. My problem was that for "Build Active Architecture Only" only Debug was configured.

You can find the setting under "YourProject" β†’ "Build Settings" β†’ "Architecture". Set the Debug option to architecure arm7 arms7s.

This solved my problem - I hope this helps too! :)

0
source share

I had a similar problem that occurs suddenly - more specifically, I got Undefined symbols for architecture armv6: "_OBJC_CLASS_$_CLLocationManager", referenced from: objc-class-ref in MyCLController.o

Please note that I had CoreLocation.framework specified in my frames (in xcode 'Project left nav, in the Frameworks folder); and previously geolocation worked perfectly.

I got rid of the problem by reinstalling CoreLocation.framework.

If you do not know how to do this in xcode:
* click on your project in xcode left nav bar
* Go to the "General" tab in your project settings
* Go down - you will see a list of frameworks installed in Linked Frameworks and Libraries
* Click the + icon to add CoreLocation.framework

0
source share

In my case, I did it in viewcontroller.m

 #import <MediaPlayer/MediaPlayer.h> 

Without using binary links with libraries with MediaPlayer.framework. By adding it, he compiled fine

0
source share

All Articles