Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8, iOS 8 simulator with crash: "dyld: lazy symbol binding failed: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue"

Tags:

ios

xcode8

Update to Xcode 8, run my app in iOS 8 simulator with crash though iOS9 and iOS10 no problem.

"dyld: lazy symbol binding failed: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue Referenced from: ** Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib

dyld: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue
Referenced from: ** Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib"

like image 286
xojiang Yang Avatar asked Sep 14 '16 08:09

xojiang Yang


1 Answers

If you have any sub-projects under the main project, one of the reasons this may happen is one or more sub-projects have their “Deployment Target” higher than the main project.

For example, if your main project has its deployment target 8.0, set the deployment targets of all the sub-projects to 8.0. I think this will fix your problem. Let me know in case it does. Cheers.

like image 161
Sagar D Avatar answered Sep 28 '22 13:09

Sagar D