myhlolideMac:~ myhloli$ cd Code
myhlolideMac:Code myhloli$ cd iosre
myhlolideMac:iosre myhloli$ make
/Users/myhloli/Code/iosre/theos/makefiles/targets/Darwin/iPhone.mk:21: *** first argument to `word' function must be greater than 0. Stop.
这里make出错,猜测是没有引入sdk,解决方法是
myhlolideMac:iosre myhloli$ cd
myhlolideMac:~ myhloli$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
Password:
Tweak.xm:8:47: error: non-ASCII characters are not allowed outside of literals and identifiers
message:nil delegate:self cancelButtonTitle:@“OK” otherButtonTitle:nil];
^
Tweak.xm:8:52: error: non-ASCII characters are not allowed outside of literals and identifiers
message:nil delegate:self cancelButtonTitle:@“OK” otherButtonTitle:nil];
^
Tweak.xm:7:44: error: instance method '-initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitle:' not
found (return type defaults to 'id'); did you mean
'-initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:'? [-Werror,-Wobjc-method-access]
...*alert = [[UIAlertView alloc] initWithTitle:@"Hello,Tweak!"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:
myhlolideMac:iosre myhloli$ make
Making all for tweak iosRE...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak iosRE...
Stripping iosRE...
Signing iosRE...
myhlolideMac:iosre myhloli$ make package
Making all for tweak iosRE...
make[2]: Nothing to be done for `internal-library-compile'.
Making stage for tweak iosRE...
dpkg-deb:正在新建软件包“com.naken.iosre”,包文件为“./com.naken.iosre_1.0-1_iphoneos-arm.deb”。