Skip to content

Commit da7df29

Browse files
committed
💚
1 parent 077e271 commit da7df29

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,17 @@ jobs:
3535

3636
- name: Build iOS
3737
working-directory: apps/example
38-
run: yarn ios --simulator 'iPhone 16 Pro'
38+
run: |
39+
cd ios
40+
rm -rf Pods Podfile.lock ~/Library/Developer/Xcode/DerivedData/*
41+
pod repo update
42+
pod install --verbose
43+
cd ..
44+
RCT_NO_LAUNCH_PACKAGER=1 \
45+
xcodebuild -workspace ios/Example.xcworkspace \
46+
-scheme Example \
47+
-configuration Debug \
48+
-sdk iphonesimulator \
49+
-destination "platform=iOS Simulator,name=iPhone 16 Pro" \
50+
-UseModernBuildSystem=YES \
51+
build

apps/example/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"build:android": "cd android && ./gradlew assembleDebug --warning-mode all",
1515
"build:ios": "react-native build-ios --scheme Example --mode Debug --extra-params \"-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 CLANG_CXX_LANGUAGE_STANDARD=c++20\"",
1616
"build:macos": "react-native build-macos --scheme Example --mode Debug",
17-
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
18-
"postinstall": "node -e \"if (process.platform !== 'darwin') { console.log('Skipping iOS pod install on non-macOS environment.'); process.exit(0); } const { execSync } = require('child_process'); execSync('yarn pod:install:ios', { stdio: 'inherit' });\""
17+
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\""
1918
},
2019
"dependencies": {
2120
"@callstack/react-native-visionos": "^0.74.0",

0 commit comments

Comments
 (0)