myell0w / MTStatusBarOverlay

A custom iOS status bar overlay seen in Apps like Reeder, Evernote and Google Mobile App
MIT License
1.92k stars 325 forks source link

-fobjc-arc #37

Closed qzc77 closed 13 years ago

qzc77 commented 13 years ago

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"

qzc77 commented 13 years ago

dyld: Symbol not found: _objc_retain

coneybeare commented 13 years ago

Here is how to do it: https://github.com/myell0w/MTStatusBarOverlay/issues/34#issuecomment-2548375

myell0w commented 13 years ago

@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".

qzc77 commented 13 years ago

@myell0w how to link my target to arc -runtime? add libarc.dylib?

qzc77 commented 13 years ago

you have to add "-fobjc-arc" to "Other Linker Flags" of your project very goog!!

vguerci commented 13 years ago

@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)

myell0w commented 13 years ago

@vguerci It's all in there

vguerci commented 13 years ago

@myell0w ah my bad, I missed the introduction, was expecting that point on step 3. thanks :)

myell0w commented 13 years ago

np :)