From 042028f1ebe4d37811b8f81d59bb43bff8c895d4 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 22 Sep 2022 17:57:13 +0500 Subject: [PATCH] ci: build ipa in two steps --- apps/mobile/package.json | 3 +-- codemagic.yaml | 5 ++++- package.json | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/mobile/package.json b/apps/mobile/package.json index efe8b7eb4..53dee145b 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -19,8 +19,7 @@ "e2e-ios": "cd native && detox test -c ios.sim.release --detectOpenHandles", "bump": "npx react-native bump-version --skip-semver-for android", "release-android": "cd native/android && GITHUB_RELEASE=true ENVFILE=.env.public ./gradlew assembleRelease --no-daemon", - "release-android-bundle": "cd native/android && ./gradlew bundleRelease --no-daemon", - "release-ios": "xcode-project build-ipa --workspace 'native/ios/Notesnook.xcworkspace' --scheme '$XCODE_SCHEME'" + "release-android-bundle": "cd native/android && ./gradlew bundleRelease --no-daemon" }, "devDependencies": { "patch-package": "^6.4.7", diff --git a/codemagic.yaml b/codemagic.yaml index 9c6195df5..cef28d877 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -52,9 +52,12 @@ workflows: fi - name: Set up code signing settings on Xcode project script: xcode-project use-profiles + - name: Build packages + script: | + yarn build - name: Build ipa for distribution script: | - yarn release:ios + xcode-project build-ipa --workspace "$FCI_BUILD_DIR/apps/mobile/native/ios/$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME" artifacts: - build/ios/ipa/*.ipa - /tmp/xcodebuild_logs/*.log diff --git a/package.json b/package.json index cc45aeb4b..5f9345918 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "build:android": "nx build-android @notesnook/mobile", "release:android": "nx release-android @notesnook/mobile", "release:android:bundle": "nx release-android-bundle @notesnook/mobile", - "release:ios": "nx release-ios @notesnook/mobile", "test:ios": "nx e2e-ios @notesnook/mobile", "test:android": "nx e2e-android @notesnook/mobile", "start:metro": "nx start @notesnook/mobile",