Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
name: Build XCFramework
runs-on: macos-15
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: ./.github/actions/setup-java

- name: Build XCFramework
run: |
./gradlew :app-shared:assembleSharedDebugXCFramework \
-Papp.ios.shared.arch=arm64SimulatorDebug \
--stacktrace

- name: Upload XCFramework
uses: actions/upload-artifact@v4
with:
Expand All @@ -51,20 +51,32 @@ jobs:
needs: build-xcframework
runs-on: macos-15
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download XCFramework
uses: actions/download-artifact@v4
with:
name: app-ios-shared-xcframework
path: app-shared/build/XCFrameworks

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app

run: sudo xcode-select -s /Applications/Xcode_26.0.app

- name: List installed runtimes & devices
run: |
echo "DEVELOPER_DIR=$DEVELOPER_DIR"
xcodebuild -version
xcrun simctl list runtimes
xcrun simctl list devices available

- name: Install iOS Simulator runtime
run: |
sudo xcodebuild -downloadPlatform iOS
sudo xcodebuild -runFirstLaunch

- name: Cache SPM dependencies
uses: actions/cache@v3
with:
Expand All @@ -75,14 +87,14 @@ jobs:
key: ${{ runner.os }}-spm-${{ hashFiles('app-ios/Core/Package.swift', 'app-ios/Native/Package.swift') }}
restore-keys: |
${{ runner.os }}-spm-

- name: Resolve Package Dependencies
working-directory: app-ios
run: |
xcodebuild -resolvePackageDependencies \
-project DroidKaigi2025.xcodeproj \
-scheme DroidKaigi2025

- name: Build iOS App
working-directory: app-ios
env:
Expand All @@ -93,19 +105,19 @@ jobs:
-project DroidKaigi2025.xcodeproj \
-scheme DroidKaigi2025 \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath ./DerivedData \
-skipPackagePluginValidation \
-skipMacroValidation \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ios-app-build
path: |
app-ios/DerivedData/Build/Products/Debug-iphonesimulator/*.app
retention-days: 7
retention-days: 7
Loading