OGeek|极客世界-中国程序员成长平台

标题: ios - Theos 不能用 Arm64 编译 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 13:04
标题: ios - Theos 不能用 Arm64 编译

我正在尝试在 Windows 8.1(64 位)上使用 Theos 打包越狱调整。如果我没有指定 Arm64,它可以很好地编译并在我的 iPhone 5 上运行。但不是我的 6s。控制台说一个我不明白的大错误。任何试图让这个调整以 64 位架构编译的帮助都会很棒。

生成文件:

ARCHS = armv7 armv7s arm64
test_FRAMEWORKS = UIKit
include theos/makefiles/common.mk

TWEAK_NAME = Forton
Forton_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

SUBPROJECTS += fortonprefs
include $(THEOS_MAKE_PATH)/aggregate.mk

错误日志:

$ make package
/home/AbbottL/forton/theos/makefiles/targets/Cygwin/iphone.mk:38: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak Forton...
Linking tweak Forton...
ld: warning: ignoring file /home/AbbottL/forton/theos/sdks/iPhoneOS8.1.sdk/usr/lib/dylib1.o, missing required architecture arm64 in file /home/AbbottL/forton/theos/sdks/iPhoneOS8.1.sdk/usr/lib/dylib1.o (2 slices)
ld: warning: ignoring file /home/AbbottL/forton/theos/lib/libsubstrate.dylib, file was built for armv7 which is not the architecture being linked (arm64): /home/AbbottL/forton/theos/lib/libsubstrate.dylib
Undefined symbols for architecture arm64:
  "_MSHookMessageEx", referenced from:
  _logosLocalInit() in Tweak.xm.91812798.o
ld: symbol(s) not found for architecture arm64
armv7-apple-darwin11-clang: error: linker command failed with exit code 1 (use -v to see invocation)
/home/AbbottL/forton/theos/makefiles/instance/library.mk:27: recipe for target 'obj/Forton.dylib.1b5b9d6a.unsigned' failed
make[2]: *** [obj/Forton.dylib.1b5b9d6a.unsigned] Error 1
/home/AbbottL/forton/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed
make[1]: *** [internal-library-all_] Error 2
/home/AbbottL/forton/theos/makefiles/master/rules.mk:54: recipe for target 'Forton.all.tweak.variables' failed
make: *** [Forton.all.tweak.variables] Error 2

使用 ios 8.1 SDK



Best Answer-推荐答案


已通过将 libsustrate 文件交换到更高版本来修复。

关于ios - Theos 不能用 Arm64 编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34522313/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) Powered by Discuz! X3.4