// 进入到项目根目录
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 发布
本文详细介绍了如何在本地环境中构建iOS应用并将其安装到指定的模拟器上,包括进入项目根目录、构建安装包、安装及启动应用、以及如何在模拟器中打开和删除应用的具体步骤。
1455

被折叠的 条评论
为什么被折叠?



