Skip to content

Commit ead2d4f

Browse files
Use built-in Xcode Cloud env variables
Use the built-in Xcode Cloud environment variables CI_TEAM_ID and CI_BUNDLE_ID in the post-clone ci script. Since these values are private and not in the public repository they are added in conditional xcconfig files written before building. The workflow had them added as custom environment variables but the values are also already present as Xcode Cloud environment variables.
1 parent de57e3b commit ead2d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci_scripts/ci_post_clone.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ if [ $CI_XCODE_CLOUD = "TRUE" ]; then
1212
privateProjectConfigPath="$CI_PRIMARY_REPOSITORY_PATH/Config/PrivateProjectConfig.xcconfig"
1313

1414
cat > $privateProjectConfigPath <<- EOF
15-
DEVELOPMENT_TEAM = $TS_DEVELOPMENT_TEAM
15+
DEVELOPMENT_TEAM = $CI_TEAM_ID
1616
EOF
1717

1818
# Write private app configuration file
1919
privateAppConfigPath="$CI_PRIMARY_REPOSITORY_PATH/Config/PrivateAppConfig.xcconfig"
2020

2121
cat > $privateAppConfigPath <<- EOF
22-
PRODUCT_BUNDLE_IDENTIFIER = $TS_PRODUCT_BUNDLE_IDENTIFIER
22+
PRODUCT_BUNDLE_IDENTIFIER = $CI_BUNDLE_ID
2323
EOF
2424

2525
else

0 commit comments

Comments
 (0)