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

倾然丶 夕夏残阳落幕 提交于 2019-11-30 19:53:14

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!