-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make run-ios-device script #18845
Conversation
Jenkins BuildsClick to see older builds (20)
|
4e538e3
to
4660c75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
4660c75
to
f9c4935
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine, but the inverted approach seems better.
I'm also in favour of the inverted approach, I'll get to this PR in sometime and I still need to rebase this to that approach. |
1d91919
to
6f82cb0
Compare
c9632b8
to
b048973
Compare
fixes #16310 We used to reply on `react-native cli` and would pass a `--device` flag to deploy the debug variant of `iOS` app on connected `iPhone`. `react-native cli` under the hood uses `ios-deploy` library to achieve this functionality. This showed many weird issues, specifically in locating connected devices and failures at build step with ambiguous error messages. This commit fixes it by using our custom script `run-ios-devices.sh` which does not rely on `ios-deploy`. We use `libimobiledevice` to identify `UDID` of a connected `iPhone`. We use `xcrun devicectl device install app` and `xcrun devicectl device process launch` to install and launch the app. This works well with `Xcode 15` and `iOS 17.x`. We can now remove `ios-deploy` from `iOS` shell and `nix` overlay. we also set up a logs folder and add a Readme - connect your iPhone to your Laptop via a cable - `make run-clojure` - `make run-ios-device` (note: no need to pass device name now)
b048973
to
43eaa57
Compare
fixes #16310 We used to reply on `react-native cli` and would pass a `--device` flag to deploy the debug variant of `iOS` app on connected `iPhone`. `react-native cli` under the hood uses `ios-deploy` library to achieve this functionality. This showed many weird issues, specifically in locating connected devices and failures at build step with ambiguous error messages. This commit fixes it by using our custom script `run-ios-devices.sh` which does not rely on `ios-deploy`. We use `libimobiledevice` to identify `UDID` of a connected `iPhone`. We use `xcrun devicectl device install app` and `xcrun devicectl device process launch` to install and launch the app. This works well with `Xcode 15` and `iOS 17.x`. We can now remove `ios-deploy` from `iOS` shell and `nix` overlay. We also set up a logs folder and add a Readme. ## Review notes - connect your iPhone to your Laptop via a cable - `make run-clojure` - `make run-ios-device` (note: no need to pass device name now) ## Platforms - iOS
fixes #16310
Summary
We used to reply on
react-native cli
and would pass a--device
flag to deploy the debug variant ofiOS
app on connectediPhone
.react-native cli
under the hood usesios-deploy
library to achieve this functionality.This showed many weird issues, specifically in locating connected devices and failures at build step with ambiguous error messages.
This PR fixes it by using our custom script
run-ios-devices.sh
which does not rely onios-deploy
.We use
libimobiledevice
to identifyUDID
of a connectediPhone
.We use
xcrun devicectl device install app
andxcrun devicectl device process launch
to install and launch the app.This works well with
Xcode 15
andiOS 17.x
.We can now remove
ios-deploy
fromiOS
shell andnix
overlay.Review notes
make run-clojure
make run-ios-device
(note: no need to pass device name now)
Screen recording
run-ios-devices-1080p.mov
Platforms
status: ready