-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script and make adjustments for Xcode Cloud
- Add post clone script to write private xcconfig files - Update paths to private xcconfig files
- Loading branch information
1 parent
c59b087
commit 3c541f8
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# ci_post_clone.sh | ||
# CloudBuildTestbed | ||
# | ||
# Created by James Dempsey on 6/10/23. | ||
# | ||
|
||
if [ $CI = "TRUE" ]; then | ||
|
||
# Write private project configuration file | ||
privateProjectConfigPath="$CI_WORKSPACE/Config/PrivateProjectConfig.xcconfig" | ||
|
||
cat > $privateProjectConfigPath <<- EOF | ||
DEVELOPMENT_TEAM = $TS_DEVELOPMENT_TEAM | ||
EOF | ||
|
||
# Write private app configuration file | ||
privateAppConfigPath="$CI_WORKSPACE/Config/PrivateAppConfig.xcconfig" | ||
|
||
cat > $privateAppConfigPath <<- EOF | ||
PRODUCT_BUNDLE_IDENTIFIER = $TS_PRODUCT_BUNDLE_IDENTIFIER | ||
EOF | ||
|
||
else | ||
echo "CI env variable was not TRUE" | ||
fi |