Closed qzc77 closed 13 years ago
dyld: Symbol not found: _objc_retain
Here is how to do it: https://github.com/myell0w/MTStatusBarOverlay/issues/34#issuecomment-2548375
@coneybeare thanks for pointing to the solution. You have to link your target to the ARC-runtime under iOS 4, which can bet done by adding -fobjc-arc to "other linker flags".
@myell0w how to link my target to arc -runtime? add libarc.dylib?
you have to add "-fobjc-arc" to "Other Linker Flags" of your project very goog!!
@myell0w may I suggest to edit README to point that, since apparently -fobjc-arc
just set on MTStatusOverlay.m is not enough. (has to be in other linked flags, otherwise that builds, but crash on iOS4)
@vguerci It's all in there
@myell0w ah my bad, I missed the introduction, was expecting that point on step 3. thanks :)
np :)
target ios5,add -fobjc-arc,run is ok, but target ios 4,runtime report error: "dyld: lazy symbol binding failed: Symbol not found: _objc_retain"