请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

yarn ios 报错

error Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues.
Error: Command failed: xcrun simctl list --json devices
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

    at checkExecSyncError (node:child_process:885:11)
    at Object.execFileSync (node:child_process:921:15)```

通过xcode可以打开,但是再次yarn ios还是报错

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2022-11-25 08:30:21
你用xcode将模拟器打开,在用命令行运行试试看呢。
0 回复 有任何疑惑可以回复我~
  • 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 AwesomeProject.xcworkspace.
    Command line invocation:
        /Users/wubaibin/Desktop/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace AwesomeProject.xcworkspace -configuration Debug -scheme AwesomeProject -destination id=F7E07E36-5E6A-4279-8954-329EFAB34B54
    
    User defaults from command line:
        IDEPackageSupportUseBuiltinSCM = YES
    
    note: Using new build system
    note: Planning
    Analyze workspace
    
    Create build description
    Build description signature: 9e4060d99aa4f1ea52cd6c07c2bb32df
    Build description path: /Users/wubaibin/Library/Developer/Xcode/DerivedData/AwesomeProject-fdmhbwuvwluamdcytldhzcneffdm/Build/Intermediates.noindex/XCBuildData/9e4060d99aa4f1ea52cd6c07c2bb32df-desc.xcbuild
    
    note: Build preparation complete
    note: Building targets in dependency order
    
    
    老师,现在报这个错误了。有什么好的解决方法
    回复 有任何疑惑可以回复我~ 2022-11-25 19:20:29
  • 可能是项目没有初始化完成导致的,可以新创建一个项目然后运行看还会不会有这个问题?
    回复 有任何疑惑可以回复我~ 2022-11-27 10:33:43
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信