gpt4 book ai didi

ios - '-mmacosx-version-min' 不允许 '-miphoneos-version-min'

转载 作者:行者123 更新时间:2023-12-01 16:41:24 30 4
gpt4 key购买 nike

我正在尝试为 iOS 模拟器交叉编译库:

export CC="clang -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"

export CXX="clang++ -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"

../configure --prefix=/Users/asmirnov/Documents/dev/src/libadx_installed --enable-optimized --disable-assertions

unset CC CXX

make VERBOSE=1 -j4

我收到错误:

clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed with '-miphoneos-version-min=5.0'

因为我正在为 ios 编译,所以我使用 -miphoneos-version-min 参数并且 -mmacosx-version-min=10.9 以某种方式自动添加。

我该如何解决?

更新:让 VERBOSE=1

llvm[3]: Linking Release Loadable Module LLVMHello.dylib
clang++ -O3 -rdynamic -Wl,-rpath -Wl,@executable_path/../lib -L/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib -L/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -m32 -Wl,-flat_namespace -Wl,-undefined,suppress -dynamiclib -mmacosx-version-min=10.9 -o /Users/asmirnov/Documents/dev/src/llvm_34_build_i386/Release/lib/LLVMHello.dylib /Users/asmirnov/Documents/dev/src/llvm_34_build_i386/lib/Transforms/Hello/Release/Hello.o \
-Wl,-exported_symbols_list,/Users/asmirnov/Documents/dev/src/llvm_34_build_i386/lib/Transforms/Hello/Release/Hello.exports.sed -lz -lpthread -lcurses -lm
clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed with '-miphoneos-version-min=5.0'

最佳答案

这是 lib 的 Makefile 中的错误,通过删除包含“mmacosx-version-min”的行来修复。默认情况下,出于某种原因,它会为非 ARM 构建添加“mmacosx-version-min”

关于ios - '-mmacosx-version-min' 不允许 '-miphoneos-version-min',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24007928/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com