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

Upgrading to Xcode 8, run my application on iOS 8 simulator crash, although iOS9 and iOS10 are not a problem.

"dyld: unsuccessful lazy character binding: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue Link from: ** Expected in: / Library / Developer / CoreSimulator / Profiles / Runtimes / iOS 8.1.simruntime / Content / Resources / RuntimeRoot / USR / Lib / libobjc.A .dylib

dyld: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue
Link from: ** Expected in: / Library / Developer / CoreSimulator / Profiles / Runtimes / IOS 8.1.simruntime / Content / Resources / RuntimeRoot / USR / Library / libobjc.A.dylib "

+6
source share
3 answers

If you have any subprojects within the main project, one of the reasons this can happen is because one or more subprojects have a “ Deployment Goal ” above the main project.

For example, if your main project has an 8.0 deployment goal, set deployment goals for all subprojects prior to 8.0. I think this will fix your problem. Let me know if this happens. Greetings.

+17
source

I had exactly the same problem after upgrading to Xcode 8, and as @Shaggy noted, in my case this is because the deployment goals in the dependent projects are set to 9.3, while my main project has a deployment target of 8.0.

, , , , . , , , .

+5

I had the same problem after changing function arguments in a loaded library. Cleaning up the build directory did this for me.

0
source

Source: https://habr.com/ru/post/1654544/


All Articles