Skip to content

Commit fb05b04

Browse files
committed
write Info.plist as XML
1 parent 01e57ce commit fb05b04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

NativeScript/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,11 @@ if(TARGET_PLATFORM_MACOS)
303303
# COMMAND /usr/libexec/PlistBuddy -c "Add :LSMinimumSystemVersion string ${CMAKE_OSX_DEPLOYMENT_TARGET}" $<TARGET_FILE_DIR:${NAME}>/Resources/Info.plist
304304
# )
305305

306+
# Convert the Info.plist from binary format to XML format.
307+
# This seemed to unblock a build error when using in React Native.
308+
add_custom_command(TARGET ${NAME} POST_BUILD
309+
COMMAND plutil -convert xml1 $<TARGET_FILE_DIR:${NAME}>/Info.plist
310+
)
306311
set(METADATA_FILE "metadata.macos.nsmd")
307312
elseif(TARGET_PLATFORM_IOS)
308313
# Convert the Info.plist from binary format to XML format.

0 commit comments

Comments
 (0)