Skip to content

Added localization support (#42) #35

Added localization support (#42)

Added localization support (#42) #35

Workflow file for this run

name: Xcode Build and Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
test:
name: Run Xcode Tests on iPhone 16 (iOS 18.1)
# macOS-latest should ideally include Xcode 16+, but we'll ensure it.
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode 16.x for iOS 18.1 support
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest-stable' # Try 'latest-stable' first
- name: Display active Xcode version after selection
run: xcodebuild -version
# Verify here that Xcode 16.x (or newer) is now active.
- name: List available iOS Simulators and their OS versions
# Now, this should show iPhone 16 with iOS 18.x if Xcode 16 is active.
run: xcrun simctl list devices
- name: Clean Xcode Derived Data
# Always good practice for CI to ensure a fresh build.
run: xcodebuild clean -scheme BuilderIO -destination "platform=iOS Simulator,name=iPhone 16,OS=18.1"
- name: Build and Test Xcode Project on iPhone 16 (iOS 18.1)
run: |
SIMULATOR_NAME="iPhone 16"
# Ensure this OS version is available with your selected Xcode 16.x
OS_VERSION="18.1"
DESTINATION="platform=iOS Simulator,name=${SIMULATOR_NAME},OS=${OS_VERSION}"
echo "Attempting to build and test on destination: $DESTINATION"
xcodebuild test -scheme BuilderIO \
-destination "$DESTINATION" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO
# If you want to capture test results:
# -resultBundlePath "output/TestResults.xcresult"