ios “无法为模拟器构建应用程序,在iPhone 14 Plus上启动应用程序时出错,”

mklgxw1f  于 2022-12-15  发布在  iOS
关注(0)|答案(1)|浏览(922)

47
我的问题是由于某种原因我不能在iOS模拟器上开始调试。我试过几种解决方案,但都不起作用。我没有Podfile,但我解决了这个问题
我试过运行sudo宝石安装cocopods pod init pod安装flutter清洁&& flutter运行,它不工作
这就是问题所在

FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1      asFileUri (package:vm/kernel_front_end.dart:659:37)
#2      writeDepfile (package:vm/kernel_front_end.dart:799:21)
    <asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:625:9)
    <asynchronous suspension>
#4      starter (package:frontend_server/frontend_server.dart:1451:12)
    <asynchronous suspension>
#5      main (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:10:14)
    <asynchronous suspension>
    Failed to package /Users/rashedmq/development/playground/first_app.
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Building targets in dependency order
    warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    Result bundle written to path:
        /var/folders/vq/xkqtqsmx12l71dw9jj9c9wzw0000gn/T/flutter_tools.FjOdaq/flutter_ios_build_temp_dir7fPzMI/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 14 Plus.
uplii1fm

uplii1fm1#

尝试卸载您的Ios模拟器在XCode,然后创建相同的模拟器设备在我的情况下,它修复了问题。

相关问题