简体   繁体   中英

Xcode command line install to device

I am trying to install an app from XCode onto my device from the command line. I have tried several of the "xcodebuild" command line options which do build, clean, install, etc fine. I have also searched for various solutions.

I was able to execute this command but it just builds to a folder.

xcodebuild install -scheme "My App" -destination 'platform=iOS,id= mydeviceid '

I am able to take that folder from my hard drive and sync to the physical device using iTunes so all the build steps are being completed successfully. However, it does not "run" on the device like when Build and Run are executed in XCode.

There are some 3rd party solutions but I can't believe there isn't some native xcodebuild switch to do that. Does anyone have suggestions?

Thank you

There is no native xcodebuild switch to install to a device.

You need to fallback to third-party options:

You can try to use Apple Configurator 2 (available in the App Store) and install the cfgutil command line tool.

如何安装 .

Ignore the fact that ^ says "Uninstall Automation Tools...", if you haven't installed already, it will say "Install Automation Tools...".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM