Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can cause a "Symbol not found: _objc_setProperty_atomic" error when compiling for iOS 5.0?

I'm having a compiling error in IOS 5. The error I get is:

wait_fences: failed to receive reply: 10004003
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_atomic
Referenced from: /var/mobile/Applications/952C640B-8310-4028-AAE5-FD308D02B005/MorethanMusic.app/MorethanMusic
Expected in: /usr/lib/libobjc.A.dylib

dyld: Symbol not found: _objc_setProperty_atomic
Referenced from: /var/mobile/Applications/952C640B-8310-4028-AAE5-FD308D02B005/MorethanMusic.app/MorethanMusic
Expected in: /usr/lib/libobjc.A.dylib

How can I fix this error?

like image 345
Tito Q. Avatar asked Oct 12 '12 14:10

Tito Q.


2 Answers

Paul's answer is only halfway there. After some searching, I found this thread, which suggested you make the deployment target the same for all subprojects:

main project

subproject

It doesn't matter what they are (at least for this problem), as long as they're the same. This solved this precise error for me.

Don't forget to clean the GData Project's DerivedData Folder before building.

like image 163
Kevin Avatar answered Nov 08 '22 07:11

Kevin


Set your Deployment target to iOS5 in your build settings.

enter image description here

like image 38
Paul de Lange Avatar answered Nov 08 '22 09:11

Paul de Lange