File tree Expand file tree Collapse file tree
example/ios/MendixNativeExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ set -euo pipefail
1818# Configuration
1919DEVICE_NAME=" ${1:- } "
2020OS_VERSION=" ${2:- } "
21- TIMEOUT=" ${3:- 120 } "
21+ TIMEOUT=" ${3:- 600 } "
2222CHECK_INTERVAL=2
2323
2424# Colors for output
@@ -88,7 +88,8 @@ DEVICE_UDID=$(xcrun simctl list devices available --json | \
8888
8989if [ -z " $DEVICE_UDID " ]; then
9090 log_error " Device '$DEVICE_NAME ' with iOS $OS_VERSION not found or not available"
91- log_info " Looking for runtime matching: iOS-${IOS_RUNTIME_KEY} "
91+ log_info " "
92+ log_info " Hint: Use exact device name from the list above (e.g., 'iPhone Air' not 'iPhone 17 Air')"
9293 exit 1
9394fi
9495
@@ -136,7 +137,7 @@ while [ $ELAPSED -lt $TIMEOUT ]; do
136137 fi
137138
138139 if [ $(( ELAPSED % 10 )) -eq 0 ] && [ $ELAPSED -gt 0 ]; then
139- log_info " Still waiting... (${ELAPSED} s elapsed)"
140+ log_info " Still waiting... (${ELAPSED} s elapsed, timeout in $(( TIMEOUT - ELAPSED )) s )"
140141 fi
141142
142143 sleep $CHECK_INTERVAL
Original file line number Diff line number Diff line change 7474 fi
7575
7676 # Launch simulator with our custom script
77- bash .github/scripts/launch-ios-simulator.sh "${{ env.DEVICE_MODEL }}" "${{ env.IOS_VERSION }}" 120
77+ bash .github/scripts/launch-ios-simulator.sh "${{ env.DEVICE_MODEL }}" "${{ env.IOS_VERSION }}"
7878
7979 # Install app on simulator
8080 - name : Install app on simulator
Original file line number Diff line number Diff line change @@ -16,10 +16,15 @@ class AppDelegate: RCTAppDelegate {
1616
1717 //Start - For MendixApplication compatibility only, not part of React Native template
1818 SessionCookieStore . restore ( )
19+
20+ guard let bundleUrl = bundleURL ( ) else {
21+ fatalError ( " Unable to load JavaScript bundle. " )
22+ }
23+
1924 MxConfiguration . update ( from:
2025 MendixApp . init (
2126 identifier: nil ,
22- bundleUrl: bundleURL ( ) ! ,
27+ bundleUrl: bundleUrl ,
2328 runtimeUrl: URL ( string: " http://localhost:8081 " ) !,
2429 warningsFilter: . none,
2530 isDeveloperApp: false ,
You can’t perform that action at this time.
0 commit comments