Repair -weak_library /usr/lib/libSystem.B.dylib for Urban Airship
This week I was implementing Urban Airship into my application when i came across this weird behaviour. I followed the documentation and implemented all the steps only to find the application would crash with “EXEC_BAD_ACCESS” before if even finished loading. A little confused I tried to NSZombie the root of the cause however instruments wouldn’t attach to the target and I had to force quite instruments just to regain control of my computer.
Going back on my steps I narrowed the issue down to setting the following flag in the targets “Other Linker Flags”
-weak_library /usr/lib/libSystem.B.dylib
You will most likely have that reference because your are either using Urban Airship or Flurry analytics in your projects.
Apparently this library is not available on the ios simulator above SDK version 4.2. So, If you are experiencing problems with this I suggest you try using the following flag instead.
-weak-lSystem

Hello. I'm Byron Salau a Melbourne based developer who's an absolute objective-c and javascript junkie!