Skip to content

Commit

Permalink
fix CFBundleSupportedPlatforms
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Sep 21, 2024
1 parent cf290cc commit 6427d55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ios/Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<string>FMWK</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
<string>${IOS_SUPPORTED_PLATFORM}</string>
</array>
<key>MinimumOSVersion</key>
<string>100.0</string>
Expand Down

0 comments on commit 6427d55

Please sign in to comment.