Skip to content

Commit 8214f27

Browse files
PatriceJiangminggo
authored andcommitted
[bugfix] set Info.plist path (#20405)
fix bug introduced in #20205
1 parent ff333f7 commit 8214f27

File tree

19 files changed

+24
-24
lines changed

19 files changed

+24
-24
lines changed

templates/cpp-template-default/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ if(APPLE)
141141
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
142142

143143
if(MACOSX)
144-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
144+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/mac/Info.plist")
145145
elseif(IOS)
146-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
146+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios_mac/ios/Info.plist")
147147
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
148148
endif()
149149

templates/cpp-template-default/proj.ios_mac/ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleIconFile</key>
1212
<string>Icon-57.png</string>
1313
<key>CFBundleIdentifier</key>
14-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
14+
<string>org.cocos2dx.hellocpp</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
1717
<key>CFBundleName</key>

templates/lua-template-default/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if(APPLE)
136136
LINK_FLAGS "-pagezero_size 10000 -image_base 100000000"
137137
)
138138
elseif(IOS)
139-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/Info.plist")
139+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${RUNTIME_SRC_ROOT}/proj.ios_mac/ios/Info.plist")
140140
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
141141
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
142142
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")

templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleIconFile</key>
1212
<string>Icon-57.png</string>
1313
<key>CFBundleIdentifier</key>
14-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
14+
<string>org.cocos2dx.hellolua</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
1717
<key>CFBundleVersion</key>

templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/mac/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleIconFile</key>
1010
<string>Icon</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
12+
<string>org.cocos2dx.hellolua</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

tests/cpp-empty-test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ if(XCODE)
134134
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
135135

136136
if(MACOSX)
137-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist")
137+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist")
138138
elseif(IOS)
139-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
139+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
140140
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
141141
endif()
142142

tests/cpp-empty-test/proj.ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<key>CFBundleIcons~ipad</key>
2525
<dict/>
2626
<key>CFBundleIdentifier</key>
27-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
27+
<string>org.cocos2dx.cpp_empty_test</string>
2828
<key>CFBundleInfoDictionaryVersion</key>
2929
<string>6.0</string>
3030
<key>CFBundleName</key>

tests/cpp-empty-test/proj.mac/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleIconFile</key>
1010
<string>Icon</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
12+
<string>org.cocos2dx.cpp_empty_test</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

tests/cpp-tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ if(APPLE)
405405
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
406406

407407
if(MACOSX)
408-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist")
408+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist")
409409
elseif(IOS)
410-
set_xcode_property(${APP_NAME} INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
410+
set_target_properties(${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.ios/Info.plist")
411411
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
412412
endif()
413413

tests/cpp-tests/proj.ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleIconFile</key>
1212
<string>Icon</string>
1313
<key>CFBundleIdentifier</key>
14-
<string>org.cocos2dx.${PRODUCT_NAME}</string>
14+
<string>org.cocos2dx.cpp_tests</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
1717
<key>CFBundleName</key>

0 commit comments

Comments
 (0)