首页 > 解决方案 > 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')

标签: react-nativecocoapodsreact-native-iosapple-m1flipper

解决方案


我通常跑步yarn ios

此外,您可以尝试使用 Xcode 运行项目。它应该为您提供更有用的错误日志,以便您找出真正的问题所在。寻找红色的 X 图标,看看他们在说什么。


推荐阅读