Skip to content

Commit

Permalink
[playground] fix watchOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
honghaoz committed Sep 29, 2024
1 parent 3082a22 commit 378e6bf
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
E59D80A22CA8F64F006A6467 = {
isa = PBXGroup;
children = (
E59D80B32CA8F64F006A6467 /* ChouTiPlayground-watchOS Watch App */,
E59D80B32CA8F64F006A6467 /* ChouTiPlayground-watchOS */,
E59D80AA2CA8F64F006A6467 /* Products */,
E59D80C82CA8F6A1006A6467 /* Frameworks */,
);
Expand All @@ -78,15 +78,15 @@
name = Products;
sourceTree = "<group>";
};
E59D80B32CA8F64F006A6467 /* ChouTiPlayground-watchOS Watch App */ = {
E59D80B32CA8F64F006A6467 /* ChouTiPlayground-watchOS */ = {
isa = PBXGroup;
children = (
E59D80B42CA8F64F006A6467 /* ChouTiPlayground_watchOSApp.swift */,
E59D80B62CA8F64F006A6467 /* ContentView.swift */,
E59D80B82CA8F650006A6467 /* Assets.xcassets */,
E59D80BA2CA8F650006A6467 /* Preview Content */,
);
path = "ChouTiPlayground-watchOS Watch App";
path = "ChouTiPlayground-watchOS";
sourceTree = "<group>";
};
E59D80BA2CA8F650006A6467 /* Preview Content */ = {
Expand Down Expand Up @@ -345,7 +345,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"ChouTiPlayground-watchOS Watch App/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"ChouTiPlayground-watchOS/Preview Content\"";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "ChouTiPlayground-watchOS";
Expand Down Expand Up @@ -374,7 +374,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"ChouTiPlayground-watchOS Watch App/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"ChouTiPlayground-watchOS/Preview Content\"";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "ChouTiPlayground-watchOS";
Expand Down
2 changes: 1 addition & 1 deletion scripts/xcodebuild/build-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if [[ "$OS" == *"watchOS"* ]]; then
# DESTINATION="generic/platform=watchOS"
echo ""
echo "➡️ Building for ${CYAN}watchOS ($CONFIGURATION)${RESET} on ${CYAN}$DESTINATION${RESET}..."
set -o pipefail && xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration "$CONFIGURATION" | "$REPO_ROOT"/bin/xcbeautify || ERROR_CODE=$?
set -o pipefail && xcodebuild clean build -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration "$CONFIGURATION" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | "$REPO_ROOT"/bin/xcbeautify || ERROR_CODE=$?
fi

if [ $ERROR_CODE -ne 0 ]; then
Expand Down

0 comments on commit 378e6bf

Please sign in to comment.