Skip to content

Commit ac539b1

Browse files
authored
refine cmake, add iOS sign config (#19327)
* refine cmake, add ios sign config * switch the interface orientations order at info.plist
1 parent 55b6d3a commit ac539b1

File tree

9 files changed

+34
-1
lines changed

9 files changed

+34
-1
lines changed

cmake/Modules/iOSBundleInfo.plist.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
<string>LaunchScreen</string>
3939
<key>UISupportedInterfaceOrientations</key>
4040
<array>
41-
<string>UIInterfaceOrientationLandscapeLeft</string>
4241
<string>UIInterfaceOrientationLandscapeRight</string>
42+
<string>UIInterfaceOrientationLandscapeLeft</string>
4343
</array>
4444
<key>NSHumanReadableCopyright</key>
4545
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>

templates/cpp-template-default/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ if(APPLE)
138138
elseif(IOS)
139139
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
140140
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
141+
# A way to find your own DEVELOPMENT_TEAM value:
142+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
143+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
144+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
141145
endif()
142146
elseif(WINDOWS)
143147
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

templates/js-template-default/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ if(APPLE)
137137
elseif(IOS)
138138
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
139139
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
140+
# A way to find your own DEVELOPMENT_TEAM value:
141+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
142+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
143+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
140144
endif()
141145
elseif(WINDOWS)
142146
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

templates/lua-template-default/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ if(APPLE)
160160
elseif(IOS)
161161
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
162162
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
163+
# A way to find your own DEVELOPMENT_TEAM value:
164+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
165+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
166+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
163167
endif()
164168
elseif(WINDOWS)
165169
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

tests/cpp-empty-test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ if(APPLE)
135135
elseif(IOS)
136136
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
137137
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
138+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
139+
# A way to find your own DEVELOPMENT_TEAM value:
140+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
141+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
142+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
138143
endif()
139144
elseif(WINDOWS)
140145
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

tests/cpp-tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ if(APPLE)
473473
elseif(IOS)
474474
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
475475
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
476+
# A way to find your own DEVELOPMENT_TEAM value:
477+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
478+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
479+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
476480
endif()
477481
elseif(WINDOWS)
478482
# "too large PDB" error often occurs in cpp-tests when using default "/Zi"

tests/js-tests/project/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ if(APPLE)
156156
elseif(IOS)
157157
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
158158
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
159+
# A way to find your own DEVELOPMENT_TEAM value:
160+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
161+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
162+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
159163
endif()
160164
elseif(WINDOWS)
161165
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

tests/lua-empty-test/project/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ if(APPLE)
107107
elseif(IOS)
108108
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
109109
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
110+
# A way to find your own DEVELOPMENT_TEAM value:
111+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
112+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
113+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
110114
endif()
111115
elseif(WINDOWS)
112116
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

tests/lua-tests/project/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ if(APPLE)
115115
elseif(IOS)
116116
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
117117
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
118+
# A way to find your own DEVELOPMENT_TEAM value:
119+
# https://github.com/cocos2d/cocos2d-x/issues/19319#issuecomment-455931410
120+
set_xcode_property(${APP_NAME} DEVELOPMENT_TEAM "")
121+
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "iPhone Developer")
118122
endif()
119123
elseif(WINDOWS)
120124
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR}/..)

0 commit comments

Comments
 (0)