theos clang: error: no such sysroot directory: '' [-Werror,-Wmissing-sysroot] clang: error: invalid

    xiaoxiao2022-07-07  173

    Tweak.xm 编译错误,提示如下:

    clang: error: no such sysroot directory: '' [-Werror,-Wmissing-sysroot]

    clang: error: invalid iOS deployment version '-miphoneos-version-min=11.2', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]

    第一个问题是设置theos的路径不对,起初设置的是export THEOS=/opt/theos,始终过不了, 最后发现改为export THEOS=~/opt/theos,正常通过。

    第二个问题是需要设置ARCHS = arm64。

    最新回复(0)