forked from ChartsOrg/Charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update schemes, move script to file like ChartsRealm
update the schemes so test and library are linked (⌘ + U). move coping dependencies to external script like ChartsRealm
- Loading branch information
Showing
3 changed files
with
46 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
case "$PLATFORM_NAME" in | ||
macosx) plat=Mac;; | ||
iphone*) plat=iOS;; | ||
watch*) plat=watchOS;; | ||
appletv*) plat=tvOS;; | ||
*) echo "error: Unknown PLATFORM_NAME: $PLATFORM_NAME"; exit 1;; | ||
esac | ||
|
||
for (( n = 0; n < SCRIPT_INPUT_FILE_COUNT; n++ )); do | ||
VAR=SCRIPT_INPUT_FILE_$n | ||
framework=$(basename "${!VAR}") | ||
export SCRIPT_INPUT_FILE_$n="$SRCROOT"/Carthage/Build/$plat/"$framework".framework | ||
done | ||
|
||
/usr/local/bin/carthage copy-frameworks || exit | ||
|
||
for (( n = 0; n < SCRIPT_INPUT_FILE_COUNT; n++ )); do | ||
VAR=SCRIPT_INPUT_FILE_$n | ||
source=${!VAR}.dSYM | ||
dest=${BUILT_PRODUCTS_DIR}/$(basename "$source") | ||
ditto "$source" "$dest" || exit | ||
done |