From b69fd925248507eb18720f6db69a5c638fd37fdf Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 31 Oct 2022 11:59:27 +0800 Subject: [PATCH] Disable bitcode building for Xcode 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From Apple: Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14. Xcode no longer builds bitcode by default and generates a warning message if a project explicitly enables bitcode: “Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode.” The capability to build with bitcode will be removed in a future Xcode release. IPAs that contain bitcode will have the bitcode stripped before being submitted to the App Store. Debug symbols for past bitcode submissions remain available for download. (86118779) --- cmake/Toolchain-cctools.cmake | 5 ----- cmake/Toolchain-ios-xcode.cmake | 5 ----- 2 files changed, 10 deletions(-) diff --git a/cmake/Toolchain-cctools.cmake b/cmake/Toolchain-cctools.cmake index e6091d653..7f6c43094 100644 --- a/cmake/Toolchain-cctools.cmake +++ b/cmake/Toolchain-cctools.cmake @@ -16,11 +16,6 @@ else() set(CLANG_ARCH ${CCTOOLS_ARCH}) endif() -if (NOT CCTOOLS_PLATFORM MATCHES MacOSX) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode") -endif() - SET(CMAKE_C_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang) SET(CMAKE_CXX_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang++) SET(CMAKE_RANLIB ${CCTOOLS_PREFIX}/bin/${CLANG_ARCH}-apple-darwin11-ranlib) diff --git a/cmake/Toolchain-ios-xcode.cmake b/cmake/Toolchain-ios-xcode.cmake index 62df662f4..4a8c80f70 100644 --- a/cmake/Toolchain-ios-xcode.cmake +++ b/cmake/Toolchain-ios-xcode.cmake @@ -101,12 +101,7 @@ set(CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") set(CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") set(CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") -# For archive -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode") - # Fixed variables in iOS STK -set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE YES CACHE INTERNAL "") set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC NO CACHE INTERNAL "") set(CMAKE_XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES CACHE INTERNAL "") set(USE_WIIUSE FALSE CACHE BOOL "")