demo桌面没展示,MRC和ARC代码迷惑点

书上第78页的demo,iOSTargetApp我已经安装到iOS手机上,但是桌面为什么没有图标,在cydia中是能看到的,求大神指导下原因?3Q


另外问一下,现在都是ARC的编译环境,这种MRC的代码还要吗?我是直接对着书来的

是我的错,我给app改名字后,直接复制过来的,这里忘了改了…细心…细心

1 个赞

从你的makefile上看,并没有启用ARC;
启用ARC之后,如果手动release或者autorelease,编译时是会报错的

那怎么启用ARC呢?

theos默认是不启用arc的。
如果要启用,看这个 http://iphonedevwiki.net/index.php/Using_ARC_in_tweaks

How do I use ARC in tweaks?
Using theos (limited)
In your Makefile:
TweakName_CFLAGS = -fobjc-arc
Please note that this applies ARC to all files you are compiling including your tweak file.

3Q,谢谢大神