flutter Oops; flutter has exited unexpectedly
使用模拟器时执行flutter run 报出下面一大堆错误 注意只有模拟器有这种问题,真机可以正常运行
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 1f4909d52a4fc2ef)
Crash report written to /Users/admin/Tiny/Project/Git/YinHuYiTou/yhyt_app/flutter_21.log;
please let us know at https://github.com/flutter/flutter/issues.
定位到flutter_21.log
flutter run
## exception
ProcessException: ProcessException: Process "/usr/bin/xcrun" exited abnormally:
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not hardlink copy /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Containers/Bundle/Application/B2B708AE-0740-4AF0-9766-C736BB51DAE6/Runner.app to /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/Payload/Runner.app with manifest /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/com.apple.deltainstallcommands.com.example.yhytApp
Could not hardlink copy /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Containers/Bundle/Application/B2B708AE-0740-4AF0-9766-C736BB51DAE6/Runner.app to /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/Payload/Runner.app with manifest /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/com.apple.deltainstallcommands.com.example.yhytApp
Underlying error (domain=MIInstallerErrorDomain, code=8):
Could not hardlink copy /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Containers/Bundle/Application/B2B708AE-0740-4AF0-9766-C736BB51DAE6/Runner.app to /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/Payload/Runner.app with manifest /Users/admin/Library/Developer/CoreSimulator/Devices/5D883DD5-5315-474D-8E19-9E08A9FB5B4D/data/Library/Caches/com.apple.mobile.installd.staging/temp.8C1dZO/extracted/com.apple.deltainstallcommands.com.example.yhytApp
Command: /usr/bin/xcrun simctl install 5D883DD5-5315-474D-8E19-9E08A9FB5B4D /Users/admin/Tiny/Project/Git/YinHuYiTou/yhyt_app/build/ios/iphonesimulator/Runner.app
找到问题
Could not hardlink copy /Users/admin/Library/Developer/CoreSimulator/Devices
解决问题:
原来是在flutter中设置pubspec.yaml配置文件的时候有一个版本号的设置version: 1.0.0,问题就出在了这里,在iOS中有一个build号的概念,这里默认通过version: 1.0.0+n,通过+n,n代表build号,如果把+n去掉,那么在xcode工程中就没办法获取到build号,build那一行就为空,所有千万不要把+n去掉,
添加上了+n之后,把模拟器上面app先删除掉,再重新安装,即可解决问题
version: 1.0.0+1
flutter Oops; flutter has exited unexpectedly的更多相关文章
- The FastCGI process exited unexpectedly
ERROR:HTTP Error 500.0 - Internal Server Error D:\Program Files\php\php-cgi.exe - The FastCGI proces ...
- Flutter介绍 - Flutter,H5,React Native之间的对比
Flutter介绍 Flutter是Google推出的开源移动应用开发框架.开发者可以通过开发一套代码同时运行在iOS和Android平台. 它使用Dart语言进行开发,并且最终编译成各个平台的Nat ...
- sublime插件不能使用,提示plugin_host has exited unexpectedly
sublime Text3一打开软件就提示plugin_host has exited unexpectedly,插件不能使用 解决方法很简单: 1.首先,ctrl + shift + p --&g ...
- 【Flutter】Flutter 一些常用库
Flutter社区和资源传送门 新: 慕课网<Flutter入门与案例实战> | 中文网<Flutter实战>电子书 字体图标生成 http://fluttericon ...
- 【Mac + Appium】之运行报错:[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
产生下面的原因是因为:与uiautomator2的weditor冲突,两者不能同时使用. 有时打开appium时会报错: [UiAutomator] UiAutomator exited unexpe ...
- spark利用yarn提交任务报:YARN application has exited unexpectedly with state UNDEFINED
spark用yarn提交任务会报ERROR cluster.YarnClientSchedulerBackend: YARN application has exited unexpectedly w ...
- appium + python 自动化调试手机时 UiAutomator exited unexpectedly with code 0, signal null
放上appium报错图,appium在手机里安装了appium setting 和unlock 软件,输入法也被变成了appium input ,但是就是点不到目标软件,手机也可以被cmd adb ...
- 【手把手学习flutter】Flutter打Android包的基本配置和包体积优化策略
[手把手学习flutter]Flutter打Android包的基本配置和包体积优化策略 关注「松宝写代码」,回复"加群" 加入我们一起学习,天天向上 前言 因为最近参加2020FE ...
- Flutter framework & Flutter basics
Flutter framework & Flutter basics https://flutter.dev/docs/get-started/learn-more UI widgets ht ...
随机推荐
- 迭代器遍历【List、Set、Map】
迭代器遍历[List.Set.Map] example package boom.collection; import java.util.ArrayList; import java.util.Ha ...
- 【2017-04-19】C#中String.Format格式使用
例子: int a =9; string s= a.ToString("000"); Console.Write(s); 打印出来就是009 C#格式化数值结果表 字符 说明 示例 ...
- python自动生成excel(xlwt库)
下面代码使用web.py框架,其他框架都大同小异. # coding: utf- import web import json import datetime import xlwt import S ...
- Visual Studio 2019社区版:错误 MSB6006 “CL.exe”已退出,代码为 2
系统:win10 环境:Visual Studio 2019社区版 问题:错误 MSB6006 “CL.exe”已退出,代码为 2 解决方法: 1 一个类内部的定义返回类型为double的方法种没有写 ...
- QOpenGLWidget
QOpenGLWidget描述 QOpenGLWidget类是用于渲染OpenGL图形. 除了可以选择使用QPainter和标准的OpenGL渲染图形,QOpenGLWidget类提供了在Qt应用程序 ...
- 查看 SharePoint Server 中的所有网站集
网站集是具有同一所有者并共享管理设置(例如权限和配额)的一组网站.网站集是在 Web 应用程序中创建的.创建网站集时,将自动在网站集中创建一个首要网站.然后,可以在首要网站下创建一个或多个子网站.首要 ...
- iconv命令
iconv 用法: Usage: iconv [OPTION...] [FILE...] Convert encoding of given files from one encoding to an ...
- python中的list,tuple,dict,set简介---陈雨童
变量和对象 变量把对象和自己连接起来(指针连接对象空间),引用建立了变量和对象之间的映射关系,这就是引用.引用完成,就实现了赋值.变量通过对象的内存地址指向对象,类似于软链接 将变量a赋值给变量b,其 ...
- JVM(八),垃圾回收标记算法
八.垃圾回收标记算法 1.对象被判定成垃圾的标准 没有被其他对象引用 2.判断对象是否为垃圾的算法 (1)引用计数法 优点and缺点 (2)可达性分析算法
- php+提高大文件上传速度
PHP用超级全局变量数组$_FILES来记录文件上传相关信息的. 1.file_uploads=on/off 是否允许通过http方式上传文件 2.max_execution_time=30 允许脚本 ...