From 6427d551e8d3b48dcb1761d8c8c0b750c28d6b53 Mon Sep 17 00:00:00 2001 From: rainy liu Date: Sat, 21 Sep 2024 09:08:40 +0800 Subject: [PATCH] fix CFBundleSupportedPlatforms --- CMakeLists.txt | 7 +++++++ ios/Info.plist.in | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 921cbe5..78efb41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,13 @@ set_target_properties(${LIBRARY_NAME} PROPERTIES ) if(IOS) + if(DEFINED SIMULATOR64) + set(IOS_SUPPORTED_PLATFORM "iPhoneSimulator") + elseif(DEFINED OS64) + set(IOS_SUPPORTED_PLATFORM "iPhoneOS") + else() + message(FATAL_ERROR "For IOS, only OS64 and SIMULATOR64 are supported now.") + endif() set_target_properties(${LIBRARY_NAME} PROPERTIES FRAMEWORK TRUE FRAMEWORK_VERSION CXX diff --git a/ios/Info.plist.in b/ios/Info.plist.in index f804eb8..14c908f 100644 --- a/ios/Info.plist.in +++ b/ios/Info.plist.in @@ -20,7 +20,7 @@ FMWK CFBundleSupportedPlatforms - iPhoneOS + ${IOS_SUPPORTED_PLATFORM} MinimumOSVersion 100.0