From 1bf092be55810ce2fe4312ba33e9448e67ff032d Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Thu, 28 Mar 2024 15:44:35 +0800 Subject: [PATCH] ci: optimize build ios action --- .github/workflows/build-ios.yml | 5 ++--- example/package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index e06779e..43c80fc 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -17,6 +17,5 @@ jobs: - name: Run build ios run: | yarn - cd example/ios - pod install - xcodebuild -workspace ClickstreamReactNativeExample.xcworkspace -scheme ClickstreamReactNativeExample -configuration Debug -sdk iphonesimulator + cd example/ios && pod install && cd .. + yarn build:ios diff --git a/example/package.json b/example/package.json index 4608606..62b58c9 100644 --- a/example/package.json +++ b/example/package.json @@ -7,7 +7,7 @@ "ios": "react-native run-ios", "start": "react-native start", "build:android": "cd android && ./gradlew assembleDebug", - "build:ios": "cd ios && xcodebuild -workspace ClickstreamReactNativeExample.xcworkspace -scheme ClickstreamReactNativeExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO" + "build:ios": "cd ios && xcodebuild -workspace ClickstreamReactNativeExample.xcworkspace -scheme ClickstreamReactNativeExample -sdk iphonesimulator -configuration Release -destination generic/platform=iOS CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO clean archive | xcpretty" }, "dependencies": { "react": "18.2.0",