dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic

Originator:billymeltdown
Number:rdar://12412961 Date Originated:02-Oct-2012 11:56 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 4.5 (4G182)
Classification:Serious Bug Reproducible:Always
 
02-Oct-2012 11:56 AM William Gray:
Summary: Builds failing to launch/run on devices running iOS 4.3 and in iPhone 5.1 Simulator after a successful build in Xcode 4.5.

Steps to Reproduce: Build and run project in Xcode for iPhone 5.1 Simulator or on an iOS 4.3 device.

Expected Results: Application should launch.

Actual Results: Application crashes with following error in Xcode debug console:

dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic
  Referenced from: /Users/billy/Library/Application Support/iPhone Simulator/5.1/Applications/6FDBB660-74E6-4054-8C9B-9D76F37FDFB5/Strip.app/Strip
  Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation

dyld: Symbol not found: _objc_setProperty_nonatomic
  Referenced from: /Users/billy/Library/Application Support/iPhone Simulator/5.1/Applications/6FDBB660-74E6-4054-8C9B-9D76F37FDFB5/Strip.app/Strip
  Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation

Regression: Not that we're aware of.

Notes:

Few reports of this on the web, vague solutions described. We tried setting deployment target to 4.3 from 4.2 as others had suggested, but this has not fixed the problem. I'd like to send you the zipped up project in case this is something related to our project settings, but compressed, with unrelated files pruned, it's still 161MB, over the attachment limit here. Perhaps outdated settings from years ago are having an effect?

Thanks for your help!

02-Oct-2012 11:56 AM William Gray:
'Screen Shot 2012-10-02 at 11.42.02 AM.png' and 'Strip.xcodeproj.zip' were successfully uploaded

Comments

Suggestion...

We JUST fixed this same thing in our project and here's what I've gathered:

  • The code generated by the compiler when generating property synthesis methods has changed in iOS 6. This is related to the COMPILER, and that's why it's isolated to Xcode 4.5.
  • The runtime functions used by iOS 6 in these synthesized methods don't exist in previous versions of the OS, thus the crash.
  • Here's what fixed it for us: Set the deployment target for the project AND all included static libraries to iOS 5 (or 4.3 as the case may be). The static library part was what masked the issue for us.
  • Changing the deployment target appears to change what code gets generated during property synthesis.

Once we had all our projects and subprojects set to the same deployment target, the problem went away. Hope this helps.

By jbradforddillon at Oct. 12, 2012, 3:15 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!