命令行编译/安装/运行iOS App

来源:互联网 发布:php布尔类型 编辑:程序博客网 时间:2024/06/04 20:10

project目录构建应用

xcodebuild -sdk $(sdkname) build

通过 xcodebuild -showsdks得到sdkname


启动模拟器

xcrun instruments -w 'iPhone 6 Plus'


安装应用包

xcrun simctl install booted /build/Release-iphonesimulator/YPTabBarController.app 


启动模拟器中安装好的应用

xcrun simctl lauch booted com.tester.Test

com.tester.Test为应用bundle Identifier


删除模拟器中安装好的应用

xcrun simctl uninstal booted com.tester.Test

0 0
原创粉丝点击