Skip to content
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

[iOS] Replace ios-deploy with xcrun devicectl #2610

Open
cgoldsby opened this issue Feb 21, 2025 · 1 comment
Open

[iOS] Replace ios-deploy with xcrun devicectl #2610

cgoldsby opened this issue Feb 21, 2025 · 1 comment

Comments

@cgoldsby
Copy link
Contributor

Describe the Feature

Replace ios-deploy with Apple's supported xcrun devicectl.

ios-deploy is the CLI tool to install and launch apps on iOS devices but only supports versions prior to iOS 17.

Designed to work on un-jailbroken devices running iOS versions prior to iOS17.

Starting with Xcode 15 and iOS 17, ios-deploy no longer works on iOS 17+ physical devices and ios-control/ios-deploy#588 (comment).

I used run-ios with a physical iPhone, and the app did install, but it did not automatically launch the app.

ios-deploy does not work for Apple TV devices.

The AppStore no longer accepts apps built with XCode before Xcode 15 and iOS 17, so it seems safe to make this update and stop using ios-deploy completely.

Possible Implementations

xcrun devicectl is very similar to xcrun simctl.

The runOnSimulator.js could be refactored to support both simctl and devicectl.

Spawn process xcrun args:

// Install
['devicectl', 'device', 'install' , 'app', '--device', udid, appPath]

// Launch
['devicectl', 'device', 'process', 'launch', '--device', udid, bundleID]

The react-native-doctor ios-deploy health check could be removed too.

url: 'https://github.com/ios-control/ios-deploy#installation',

Real talk

The driving force for this request is that I can not use run- to install and launch react-native tvOS apps on physical devices. I would be happy to submit a PR.

Related Issues

ios-control/ios-deploy#588
flutter/flutter#133465

@thymikee
Copy link
Member

Let's do it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants