react-native运行iOS真机、模拟器命令
zdeMacBook-Pro:sometest z$ react-native run-ios -h react-native run-ios builds your app and starts it on iOS simulator Options: --simulator [string] Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: "iPhone 6 (10.0)" (default: "iPhone 11") --configuration [string] Explicitly set the scheme configuration to use (default: "Debug") --scheme [string] Explicitly set Xcode scheme to use --project-path [string] Path relative to project root where the Xcode project (.xcodeproj) lives. (default: "ios") --device [string] Explicitly set device to use by name. The value is not required if you have a single device connected. --udid [string] Explicitly set device to use by udid --no-packager Do not launch packager while building --verbose Do not use xcpretty even if installed --port [number] (default: 8081) --terminal [string] Launches the Metro Bundler in a new window using the specified terminal path. (default: "Apple_Terminal") -h, --help output usage information Example usage: Run on a different simulator, e.g. iPhone SE: react-native run-ios --simulator "iPhone SE" //运行在模拟器命令 Pass a non-standard location of iOS directory: react-native run-ios --project-path "./app/ios" Run on a connected device, e.g. Max's iPhone:
//1,Xcode连接上真机之后,
//2 ,再在命令行中执行这个命令,这个命令会安装app
react-native run-ios --device "zhuiPhoneX"
Run on the AppleTV simulator: react-native run-ios --simulator "Apple TV" --scheme "helloworld-tvOS"
分类:
混合开发 / RN项目
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
2019-07-19 flutter依赖某些插件,点击运行会出现错误
2018-07-19 Android如何制作自己的依赖库上传至github供别人下载使用