【发布时间】:2015-04-29 06:42:19
【问题描述】:
http://cl.ly/image/2K1H000s170l
请参考我的截图。这是在 iOS 模拟器中设置默认设备的手动方式。谁能告诉我如何从命令行做到这一点?非常感谢!
我需要它作为我的 Jenkins 项目设置的一部分。非常感谢!
【问题讨论】:
标签: ios jenkins command-line ios-simulator xcode6.1
http://cl.ly/image/2K1H000s170l
请参考我的截图。这是在 iOS 模拟器中设置默认设备的手动方式。谁能告诉我如何从命令行做到这一点?非常感谢!
我需要它作为我的 Jenkins 项目设置的一部分。非常感谢!
【问题讨论】:
标签: ios jenkins command-line ios-simulator xcode6.1
您可以通过在命令行中传递它来选择模拟器启动时启动的设备。见Xcode 6 - Launch simulator from command line
【讨论】:
是的,如上所述,这是重复的。
但要回答你的问题,
您可以使用这些工具来启动您选择的模拟器。例如:
xcrun instruments -w "iPhone 6 (8.2 Simulator)"
“从屏幕截图看来,您已经在 iOS 8 上。”
【讨论】:
您可以使用 xcrun 打开您的设备
xcrun instruments -w "iPhone 6 (8.4 Simulator)"
如果你想知道所有安装的设备
xcrun instruments -s
如果您需要构建和安装一些应用程序使用。
xcodebuild -sdk iphonesimulator8.4 -arch i386 install DSTROOT=~/YourApp
xcrun simctl install booted ~/YourApp/Applications/YourApp.app
【讨论】: