Tencent / xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
Other
9.4k stars 2.45k forks source link

关于ios.toolchain.cmake在iOS 13上报错 #651

Open Schrodinger123 opened 5 years ago

Schrodinger123 commented 5 years ago

`$ ./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

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_f3432 -configuration Debug -hideShellScriptEnvironment && User defaults from command line:
    HideShellScriptEnvironment = YES

Prepare build
note: Using legacy build system

=== BUILD TARGET cmTC_f3432 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===

Check dependencies
warning: The armv7 architecture is deprecated for your deployment target (iOS 13.0). You should update your ARCHS build setting to remove the armv7 architecture.
warning: The armv7s architecture is deprecated for your deployment target (iOS 13.0). You should update your ARCHS build setting to remove the armv7s architecture.

Write auxiliary files
/bin/mkdir -p /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s
write-file /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/cmTC_f3432.LinkFileList
/bin/mkdir -p /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e
write-file /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e/cmTC_f3432.LinkFileList
/bin/mkdir -p /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7
write-file /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/cmTC_f3432.LinkFileList
/bin/mkdir -p /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64
write-file /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64/cmTC_f3432.LinkFileList

CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/testCCompiler.o testCCompiler.c normal armv7s c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target armv7s-apple-ios13.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug/include -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources-normal/armv7s -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources/armv7s -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -MMD -MT dependencies -MF /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/testCCompiler.d --serialize-diagnostics /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/testCCompiler.dia -c /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/testCCompiler.o
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]

CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/testCCompiler.o testCCompiler.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target armv7-apple-ios13.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug/include -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources-normal/armv7 -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources/armv7 -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -MMD -MT dependencies -MF /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/testCCompiler.d --serialize-diagnostics /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/testCCompiler.dia -c /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/testCCompiler.o
clang: warning: overriding '-miphoneos-version-min=8.0' option with '--target=armv7-apple-ios13.0' [-Woverriding-t-option]
clang: error: invalid iOS deployment version '--target=armv7-apple-ios13.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]

CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64/testCCompiler.o testCCompiler.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64-apple-ios13.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug/include -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources-normal/arm64 -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources/arm64 -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -MMD -MT dependencies -MF /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64/testCCompiler.d --serialize-diagnostics /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64/testCCompiler.dia -c /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64/testCCompiler.o
clang: warning: overriding '-miphoneos-version-min=8.0' option with '--target=arm64-apple-ios13.0' [-Woverriding-t-option]

CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e/testCCompiler.o testCCompiler.c normal arm64e c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target arm64e-apple-ios13.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug-iphoneos\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug/include -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources-normal/arm64e -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources/arm64e -I/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/Debug -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -miphoneos-version-min=8.0 -fembed-bitcode -fobjc-abi-version=2 -fobjc-arc -MMD -MT dependencies -MF /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e/testCCompiler.d --serialize-diagnostics /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e/testCCompiler.dia -c /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/bw/Downloads/build_xlua_with_libs-master/build/build_ios/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/arm64e/testCCompiler.o
clang: warning: overriding '-miphoneos-version-min=8.0' option with '--target=arm64e-apple-ios13.0' [-Woverriding-t-option]

** BUILD FAILED **

The following build commands failed:
    CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7s/testCCompiler.o testCCompiler.c normal armv7s c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC CMAKE_TRY_COMPILE.build/Debug-iphoneos/cmTC_f3432.build/Objects-normal/armv7/testCCompiler.o testCCompiler.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

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,问题解决了

踩了一下午坑,希望能帮到其他人。

chexiongsheng commented 5 years ago

master上早就更新过ios.toolchain.cmake了,就是你发的那个链接

Schrodinger123 commented 5 years ago

master上早就更新过ios.toolchain.cmake了,就是你发的那个链接

我这里看 https://github.com/Tencent/xLua/blob/master/build/cmake/ios.toolchain.cmake 的修改时间是七个月前,链接里的是两个月前。

chexiongsheng commented 5 years ago

master上的试过也不行么?master上的就是那个地址的,版本可能旧点,但我看后来的那些修改似乎和ios 13关系不大

Schrodinger123 commented 5 years ago

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的问题?

solodon4 commented 4 years ago

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
shanegxxiao commented 4 years ago

xlua 2.1.15 执行make_ios_lua53.sh的时候也报了这样的错,xcode 11.6(11E708),cmake 3.18.0,macos 10.15.6

chexiongsheng commented 4 years ago

xlua 2.1.15 执行make_ios_lua53.sh的时候也报了这样的错,xcode 11.6(11E708),cmake 3.18.0,macos 10.15.6

升级下ios.toolchain.cmake试试。