I have a EXC_BAD_ACCESS when I call objc_setAssociatedObject with the linker flags : -weak_library /usr/lib/libSystem.B.dylib linker f
EXC_BAD_ACCESS
objc_setAssociatedObject
-weak_library /usr/lib/libSystem.B.dylib
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.
-weak_library /usr/lib/libSystem.B.dylib breaks the iOS Simulator. Use -weak-lSystem instead.