Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Can';t运行除一个以外的任何其他颤振应用程序_Ios_Macos_Flutter_Terminal - Fatal编程技术网

Ios Can';t运行除一个以外的任何其他颤振应用程序

Ios Can';t运行除一个以外的任何其他颤振应用程序,ios,macos,flutter,terminal,Ios,Macos,Flutter,Terminal,我已经从git克隆了一个新的颤振项目 当我尝试运行时,出现以下错误 Error: Could not resolve the package 'application_flutter_todo' in 'package:application_flutter_todo/utils/constants/api.dart'. ../../.pub-cache/git/flutter_maximo_api-35d1fef13c59a0e7fb70a20916adf1f9d26eac02/lib/src

我已经从git克隆了一个新的颤振项目

当我尝试运行时,出现以下错误

Error: Could not resolve the package 'application_flutter_todo' in 'package:application_flutter_todo/utils/constants/api.dart'.
../../.pub-cache/git/flutter_maximo_api-35d1fef13c59a0e7fb70a20916adf1f9d26eac02/lib/src/maximo_api.dart:5:8: Error: Not found:
'package:application_flutter_todo/utils/constants/api.dart'
import 'package:application_flutter_todo/utils/constants/api.dart';
       ^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Aapplication_flutter_todo%2Futils%2Fconstants%2Fapi.dart; message=StandardFileSystem only supports file:* and data:*
URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:604:37)
<asynchronous suspension>
#2      writeDepfile (package:vm/kernel_front_end.dart:799:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:472:15)
<asynchronous suspension>
#4      _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:38:22)
#5      starter (package:flutter_frontend_server/server.dart:149:27)
#6      main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Failed to package /Users/Mohammad/Gemba/application_traxxion.
错误:无法解析“package:application\u flatter\u todo/utils/constants/api.dart”中的包“application\u flatter\u todo”。
../...pub cache/git/flatter_maximo_api-35d1fef13c59a0e7fb70a20916adf1f9d26eac02/lib/src/maximo_api。dart:5:8:错误:未找到:
'包:应用程序\u颤振\u todo/utils/constants/api.dart'
导入“package:application_flatter_todo/utils/constants/api.dart”;
^
未处理的异常:
FileSystemException(uri=org dartlang不可翻译的uri:package%3Application\u flatter\u todo%2Futils%2Facts%2Fapi.dart;message=StandardFileSystem仅支持文件:*和数据:*
URI)
#0 StandardFileSystem.entityForUri(包:前端/src/api\u原型/standard\u文件\u系统。dart:33:7)
#1个asFileUri(包:vm/kernel\u front\u end.dart:604:37)
#2 writedpfile(包:vm/kernel\u front\u end.dart:799:21)
#3 FrontendCompiler.compile(包:frontend_server/frontend_server.dart:472:15)
#4 _flatterfrontendcompiler.compile(包:flatter _frontendcompiler\server/server.dart:38:22)
#5启动器(包:颤振前端服务器/服务器。dart:149:27)
#6主要(file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
#7_星状。(省道:隔离补片/隔离补片。省道:305:32)
#8 RawReceivePortImpl.handleMessage(dart:隔离补丁/隔离补丁。dart:174:12)
目标内核\u快照失败:异常:快照创建期间出错:null
未能生成捆绑包。
未能打包/Users/Mohammad/Gemba/application\u traxxion。
无法为设备生成预编译的应用程序

应用程序似乎仍然包含默认的签名标识符。 尝试用Xcode中的签名id替换“com.example”: 打开ios/Runner.xcworkspace

请注意,当前项目没有import'package:application\u flatter\u todo'语句。 该语句属于另一个应用程序,不在我尝试运行的当前项目中

我试过了, 1-颤振清洁 2-更新颤振 3-更新软件包 4-清洁产品 5-清洁项目 6-从terminal、visual studio代码和xcode运行项目,三者都给出了相同的结果


上述任何一项都不起作用。

正如错误所暗示的,您应该分别更改Android和iOS的软件包名称和BundleId。您不应该使用默认值

你可以找到如何做到这一点