// 进入到项目根目录
cd /users/ypf/desktop/MKSport
// 构建目标应用的安装包
xcodebuild -scheme MKSport -destination 'platform=iphonesimulator,name=iPhone 6 Plus' -derivedDataPath build
// 安装目标应用到指定的模拟器(用udid替换booted可以指定特定的模拟器)
xcrun simctl install booted build/Build/Products/Debug-iphonesimulator/MKSport.app
// 启动模拟器
xcrun instruments -w 'iPhone 6 Plus'
// 在模拟器中打开目标应用
xcrun simctl launch booted com.yuanpf.app
// 删除已安装的应用
xcrun simctl uninstall booted com.yuanpf.app
终端xcodebuild/xcrun构建并安装应用到模拟器
最新推荐文章于 2024-10-09 09:30:57 发布