Open Schrodinger123 opened 5 years ago
master上早就更新过ios.toolchain.cmake了,就是你发的那个链接
master上早就更新过ios.toolchain.cmake了,就是你发的那个链接
我这里看 https://github.com/Tencent/xLua/blob/master/build/cmake/ios.toolchain.cmake 的修改时间是七个月前,链接里的是两个月前。
master上的试过也不行么?master上的就是那个地址的,版本可能旧点,但我看后来的那些修改似乎和ios 13关系不大
master上的试过也不行么?master上的就是那个地址的,版本可能旧点,但我看后来的那些修改似乎和ios 13关系不大
我昨天就是拽的Master上的下来不行,问题就是这两行: clang: warning: overriding '-miphoneos-version-min=8.0' option with '--target=armv7s-apple-ios13.0' [-Woverriding-t-option] clang: error: invalid iOS deployment version '--target=armv7s-apple-ios13.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]
也不是iOS 13相关的,可能是新版xcode的问题?
Just came across this issue while searching for another, so I might be totally out of context. I fixed the invalid iOS deployment version error in my project by passing IOS_ARCH along with CMAKE_TOOLCHAIN_FILE:
cmake .. -G Xcode -DIOS_ARCH="arm64 i386 x86_64" -DCMAKE_TOOLCHAIN_FILE=../path/to/your/ios-cmake/ios.toolchain.cmake
xlua 2.1.15 执行make_ios_lua53.sh的时候也报了这样的错,xcode 11.6(11E708),cmake 3.18.0,macos 10.15.6
xlua 2.1.15 执行make_ios_lua53.sh的时候也报了这样的错,xcode 11.6(11E708),cmake 3.18.0,macos 10.15.6
升级下ios.toolchain.cmake试试。
`$ ./make_ios_lua53.sh -- Building with Xcode version: 11.0 -- Configuring iOS build for platform: OS, architecture(s): armv7;armv7s;arm64;arm64e -- Using manually set SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk for platform: OS -- Using the default min-version since IOS_DEPLOYMENT_TARGET not provided! -- Enabling bitcode support by default. ENABLE_BITCODE not provided! -- Enabling ARC support by default. ENABLE_ARC not provided! -- Hiding symbols visibility by default. ENABLE_VISIBILITY not provided! -- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -- Using a data_ptr size of 4 -- Building for minimum iOS version: 8.0 (SDK version: 13.0) -- Version flags set to: -miphoneos-version-min=8.0 -- Enabling bitcode support. -- Enabling ARC support. -- Hiding symbols (-fvisibility=hidden). CMake Warning (dev) at cmake/ios.toolchain.cmake:457 (set): implicitly converting 'string' to 'STRING' type. Call Stack (most recent call first): /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include) CMakeLists.txt:16 (project) This warning is for project developers. Use -Wno-dev to suppress it.
-- Building with Xcode version: 11.0 -- Configuring iOS build for platform: OS, architecture(s): armv7;armv7s;arm64;arm64e -- Using manually set SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk for platform: OS -- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -- Using a data_ptr size of 4 -- Building for minimum iOS version: 8.0 (SDK version: 13.0) -- Version flags set to: -miphoneos-version-min=8.0 -- Enabling bitcode support. -- Enabling ARC support. -- Hiding symbols (-fvisibility=hidden). CMake Warning (dev) at cmake/ios.toolchain.cmake:457 (set): implicitly converting 'string' to 'STRING' type. Call Stack (most recent call first): build_ios/CMakeFiles/3.15.4/CMakeSystem.cmake:6 (include) CMakeLists.txt:16 (project) This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is AppleClang 11.0.0.11000033 -- The CXX compiler identification is AppleClang 11.0.0.11000033 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CMake Warning (dev) at /Users/bw/Downloads/build_xlua_with_libs-master/build/cmake/ios.toolchain.cmake:457 (set): implicitly converting 'string' to 'STRING' type. Call Stack (most recent call first): /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/3.15.4/CMakeSystem.cmake:6 (include) /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project) This warning is for project developers. Use -Wno-dev to suppress it.
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:16 (project)
-- Configuring incomplete, errors occurred! See also "/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeOutput.log". See also "/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeError.log". User defaults from command line: HideShellScriptEnvironment = YES
xcodebuild: error: 'XLua.xcodeproj' does not exist. cp: build_ios/Release-iphoneos/libxlua.a: No such file or directory`
看起来问题是因为SDK版本问题导致。
苦恼了半天,用了另外一个cmake,问题解决了
踩了一下午坑,希望能帮到其他人。