所以我一直在做一个简单的调整,它花了我5分钟来编写代码。但是,在编译调整时,我现在收到此错误! 这是错误:
Making all for tweak UltraVipPro...
`Making all for tweak UltraVipPro...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak UltraVipPro...
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_UIAlertView", referenced from:
objc-class-ref in Tweak.xm.9fe5fe6c.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/UltraVipPro.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [UltraVipPro.all.tweak.variables] Error 2
make文件代码在这里:
export ARCHS = armv7 armv7s arm64
export TARGET = iphone:clang:8.1:8.1
export SDKVERSION=8.1
include theos/makefiles/common.mk
TWEAK_NAME = UltraVipPro
UltraVipPro_FILES = Tweak.xm
UltravipPro_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
请帮帮我!
答案 0 :(得分:1)
1-确保在Tweak.xm文件中包含此内容:
#import <UIKit/UIKit.h>
2-如果这不起作用,请删除该头文件导入并改为使用它:
@interface SpringBoard : NSObject
@end
答案 1 :(得分:-1)
即时使用:
ARCHS = armv7 arm64
而不是:
export ARCHS = armv7 armv7s arm64
删除 导出