EXC_BAD_ACCESS on objc_setAssociatedObject with -weak_library /usr/lib/libSystem.B.dylib linker flags

前端 未结 1 1273
离开以前
离开以前 2021-01-05 09:46

I have a EXC_BAD_ACCESS when I call objc_setAssociatedObject with the linker flags : -weak_library /usr/lib/libSystem.B.dylib linker f

相关标签:
1条回答
  • 2021-01-05 09:51

    The problem is simply a bug in the iOS Simulator. The codes works fine on the device.

    I've filled a radar on Apple's bug reporter (radar://9470793)

    EDIT: Just found out : -weak_library /usr/lib/libSystem.B.dylib breaks the iOS Simulator. Use -weak-lSystem instead.

    0 讨论(0)
提交回复
热议问题