cd /Users/rajjadon/copilot/mobile-sdk-react-native-client/example
yarn installcd ios && pod install && cd ..yarn iosyarn ios --device "Your iPhone Name"open ios/CopilotExample.xcworkspaceyarn androidyarn startyarn lintyarn test# Kill Metro
lsof -ti:8081 | xargs kill -9
# Clean builds
cd android && ./gradlew clean && cd ..
cd ios && rm -rf build && cd ..
# Clear Metro cache
yarn start --reset-cachelsof -ti:8081 | xargs kill -9
yarn startcd ios
pod deintegrate
pod install
cd ..
yarn ioscd android
./gradlew clean
cd ..
yarn android# Remove all dependencies and reinstall
rm -rf node_modules
rm yarn.lock
yarn install
# iOS
cd ios
rm -rf Pods Podfile.lock
pod install
cd ..
# Android
cd android
./gradlew clean
cd ..- Connect iPhone/iPad via USB
- Trust computer on device
- In Xcode:
- Open
ios/CopilotExample.xcworkspace - Select your device
- Signing & Capabilities → Select Team
- Press Run (⌘R)
- Open
- Enable Developer Mode on device:
- Settings → About Phone → Tap Build Number 7 times
- Enable USB Debugging:
- Settings → Developer Options → USB Debugging
- Connect device via USB
- Verify connection:
adb devices - Run:
yarn android
All available yarn commands:
yarn android- Run on Androidyarn ios- Run on iOS simulatoryarn start- Start Metro bundleryarn lint- Run ESLintyarn test- Run Jest tests
# iOS
yarn ios --verbose
# Android
yarn android --verbose
# or
adb logcat- Shake device → "Debug"
- Opens debugger at: http://localhost:8081/debugger-ui
- Shake device → "Show Inspector"