简体   繁体   English

xcodebuild安装似乎不适用于iOS设备

[英]xcodebuild install doesn't seem to work for iOS device

I need to install my app to a device from a command line (for CI purposes). 我需要从命令行将我的应用程序安装到设备上(出于CI的目的)。 To that end i am using xcodebuild install -scheme MyScheme -project Maps.xcodeproj CODE_SIGN_IDENTITY="iPhone Developer: me" -destination 'platform=iOS,id=xxxxxxxx' 为此,我正在使用xcodebuild install -scheme MyScheme -project Maps.xcodeproj CODE_SIGN_IDENTITY="iPhone Developer: me" -destination 'platform=iOS,id=xxxxxxxx'

When I run the command with the necessary keys (the scheme and the signing identity), the command completes successfully and reports " ** INSTALL SUCCEEDED ** ", however, the app doesn't appear on the device. 当我使用必要的键(方案和签名身份)运行命令时,命令成功完成并报告“ ** INSTALL SUCCEEDED ** ”,但是,该应用程序未出现在设备上。

I have seen the third party apps that claim to install your apps on devices, however, since they use private features, I am reluctant to use them. 我见过第三方应用声称可以在设备上安装您的应用,但是由于它们使用私有功能,因此我不愿意使用它们。

You can try using xcodebuild test "parameters". 您可以尝试使用xcodebuild测试“参数”。 Your app will be installed and then you can run your instrumentation tests. 您的应用将被安装,然后您可以运行检测测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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