菜鸟教程小白 发表于 2022-12-13 13:04:47

ios - Theos 不能用 Arm64 编译


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

<p>生成文件:</p>

<pre><code>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
</code></pre>

<p>错误日志:</p>

<pre><code>$ 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:
&#34;_MSHookMessageEx&#34;, 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 &#39;obj/Forton.dylib.1b5b9d6a.unsigned&#39; failed
make: *** Error 1
/home/AbbottL/forton/theos/makefiles/instance/library.mk:19: recipe for target &#39;internal-library-all_&#39; failed
make: *** Error 2
/home/AbbottL/forton/theos/makefiles/master/rules.mk:54: recipe for target &#39;Forton.all.tweak.variables&#39; failed
make: *** Error 2
</code></pre>

<p>使用 ios 8.1 SDK</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>已通过将 libsustrate 文件交换到更高版本来修复。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - Theos 不能用 Arm64 编译,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/34522313/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/34522313/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - Theos 不能用 Arm64 编译