Xcode 6.0.1编译tweak的问题

请问下我把Xcode升级到6.0.1了sdk只有8.0的,makefile里面怎么设定,弄了半天不能编译没弄好请教一下

你的makefile是怎么写的?

写TARGET=iphone:6.1
ARCHS = armv7
显示没有
Your current SYSROOT, “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk”, appears to be missing.
make: *** [before-all] Error 1
进去看了下只有8.0就改成
TARGET=iphone:8.0
ARCHS = armv7
这个要怎么改了
Undefined symbols for architecture armv7:
"OBJC_CLASS$UIAlertView", referenced from:
objc-class-ref in Tweak.xm.cade9b20.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/mytweak.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all
] Error 2
make: *** [mytweak.all.tweak.variables] Error 2

改了报错是_OBJC_CLASS_$_UIAlertView的库没有引入还是没有啊,去哪里添加还是怎么改的

你的makefile里要导入UIKit这个库啊

添加了my_FRAMEWORKS = UIKit可以了谢谢大狗神