react-native - React Native 'yarn run ios' 没有在 M1 上初始化项目
问题描述
我是 Mac OS 及其系统和 M1 的新用户。每当我尝试yarn run ios
命令时,它会打开普通模拟器,但不是我正在构建的项目,它会向我抛出错误和错误代码 65:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening dealerApp.xcodeproj.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project dealerApp.xcodeproj -configuration Debug -scheme dealerApp -destination id=0A358C3D-FE10-4872-9913-F927BCC93B29
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Using build description from disk
note: Build preparation complete
PhaseScriptExecution Start\ Packager /Users/bigez/Library/Developer/Xcode/DerivedData/dealerApp-cixnurkshkczahhihjqgcgbblssu/Build/Intermediates.noindex/dealerApp.build/Debug-iphonesimulator/dealerApp.build/Script-FD10A7F022414F080027D42C.sh (in target 'dealerApp' from project 'dealerApp')
解决方案
我通常跑步yarn ios
。
此外,您可以尝试使用 Xcode 运行项目。它应该为您提供更有用的错误日志,以便您找出真正的问题所在。寻找红色的 X 图标,看看他们在说什么。
推荐阅读
- python - 将多个数据框保存在工作簿的单独选项卡/工作表中
- react-native - Resumable.js 在本机反应
- node.js - 当我在我的谷歌收件箱中收到一封电子邮件时如何调用我的 node.js API?
- roslyn - PackageReference 或 ProjectReference 在 Analyzer 中导致 TypeLoadException 错误
- python - 如何从python中的非异步方法发布嵌入
- matrix - 用于矩阵的 mpi4py Allgatherv
- java - 库、存储库、包和文件夹之间有什么区别?
- php - 在 PHP 中提取 XML 中包含的一些 JSON
- android - 测试完成 - 真实设备中的 Andriod 自动化 - 名称映射包含重复对象(设备、设备 2、Windows、Windows2)
- c++ - 组合多个 boost property_tree