Skip to content

Commit

Permalink
Update script for use with Xcode Cloud.
Browse files Browse the repository at this point in the history
  • Loading branch information
dempseyatgithub committed Mar 2, 2024
1 parent ffed238 commit b62e427
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
#!/bin/sh

# ci_post_clone.sh
# CloudBuildTestbed
# BuildSettingExtractor
#
# Created by James Dempsey on 6/10/23.
#

if [ $CI_XCODE_CLOUD = "TRUE" ]; then

# Get path to xcconfig files in project
configFolderPath = "$CI_PRIMARY_REPOSITORY_PATH/Config"

# Write private project configuration file
privateProjectConfigPath="$CI_PRIMARY_REPOSITORY_PATH/Config/PrivateProjectConfig.xcconfig"
privateProjectConfigPath="$configFolderPath/PrivateProjectConfig.xcconfig"

cat > $privateProjectConfigPath <<- EOF
DEVELOPMENT_TEAM = $CI_TEAM_ID
EOF

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

cat > $privateAppConfigPath <<- EOF
PRODUCT_BUNDLE_IDENTIFIER = $CI_BUNDLE_ID
Expand Down

0 comments on commit b62e427

Please sign in to comment.