简体   繁体   English

Flutter 应用程序无法在 IoS 模拟器上运行,其中运行器内有循环,并且域 = NSPOSIXErrorDomain,代码 = 63

[英]Flutter App can't run on IoS simulator with cycle inside runner, and domain=NSPOSIXErrorDomain, code=63

I am having problems since the IoS 14 update.自 IoS 14 更新以来,我遇到了问题。 At first it was the deployment target 8.0 and it could temporalily fixed by updating GoogleInfoPlist every time I pulled from our repo in Git. but after a while this temporary fix doesn't work anymore.起初它是部署目标 8.0,每次我从 Git 的 repo 中提取时,它都可以通过更新 GoogleInfoPlist 来临时修复。但过了一会儿,这个临时修复不再起作用。 I got header problem for my FlutterFire plugins.我的 FlutterFire 插件出现 header 问题。

warning: double-quoted include "FLTFirebaseCorePlugin.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header] #import "FLTFirebaseCorePlugin.h" ^~~~~~~~~~~~~~~~~~~~~~~~~ <firebase_core/FLTFirebaseCorePlugin.h>警告:双引号包括框架 header 中的“FLTFirebaseCorePlugin.h”,预期尖括号而不是 [-Wquoted-include-in-framework-header] #import“FLTFirebaseCorePlugin.h”^~~~~~~~~~~ ~~~~~~~~~~~~~~ <firebase_core/FLTFirebaseCorePlugin.h>

I have updated my deprecated Firebase core,auth and firestore plugin to the newest one with the help of the flutterfire migration guide.在 flutterfire 迁移指南的帮助下,我已将已弃用的 Firebase core、auth 和 firestore 插件更新为最新插件。 after that the firebase plugin problem was fixed.之后 firebase 插件问题得到修复。 but i still got problems with 2 plugins: Google Maps Flutter and Image Picker.但我仍然遇到 2 个插件的问题:谷歌地图 Flutter 和图像选择器。 Waht i did to fix the problem was updating Cocoapods to the beta version for the Google Maps plugin but ther was still a problem with the image picker for the moment i deleted the plugin form my app.我所做的解决问题的方法是将 Cocoapods 更新为 Google 地图插件的测试版,但是当我从我的应用程序中删除插件时,图像选择器仍然存在问题。

After that i got 3 errors.之后我得到了 3 个错误。 the first one is the CodeSign cycle inside Runner Error:第一个是 Runner Error 中的 CodeSign 循环:

error: Cycle inside Runner;错误:在 Runner 中循环; building could produce unreliable results.Target 'Runner': CodeSign /Users/user/StudioProjects/app/build/ios/Debug-iphonesimulator/Runner.app ○ Target 'Runner' has copy command from '/Users/vaisatriani/StudioProjects/kuliner_11_app/build/ios/Debug-iphonesimulator/Runner.app' to构建可能会产生不可靠的结果。目标“Runner”:CodeSign /Users/user/StudioProjects/app/build/ios/Debug-iphonesimulator/Runner.app ○ 目标“Runner”具有来自“/Users/vaisatriani/StudioProjects/kuliner_11_app”的复制命令/build/ios/Debug-iphonesimulator/Runner.app' 到

I searched for a fix and i found that flutter clean can fix that error.我搜索了修复程序,发现 flutter clean 可以修复该错误。 The error did go away but one new error popped out:该错误消除了 go 但出现了一个新错误:

error: '/Users/Username/StudioProjects/appname/build/ios/Debug-iphonesimulator/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.a错误:'/Users/Username/StudioProjects/appname/build/ios/Debug-iphonesimulator/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner. app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner. app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner. app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.应用程序/Runner.a pp/GoogleService-Info.plist' is longer than filepath buffer size (1025). pp/GoogleService-Info.plist' 比文件路径缓冲区大小 (1025) 长。 (in target 'Runner' from project 'Runner') (在项目“Runner”的目标“Runner”中)

And i somehow fixed it by removing Runner as Target from Product in XCode. but now i'm stuck with this one error.我以某种方式通过在 XCode 中将 Runner 作为目标从产品中删除来修复它。但现在我遇到了这个错误。

Unable to install /Users/user/StudioProjects/app/build/ios/iphonesimulator/Runner.app on FFF556AF-19DB-4B7B-93BF-A67EE0EA8621.无法在 FFF556AF-19DB-4B7B-93BF-A67EE0EA8621 上安装 /Users/user/StudioProjects/app/build/ios/iphonesimulator/Runner.app。 This is sometimes caused by a malformed plist file: ProcessException: Process exited abnormally: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=63): copyfile of file:///Users/user/StudioProjects/app/build/ios/iphonesimulator/Runner.app/ to file:///Users/user/Library/Developer/CoreSimulator/Devices/FFF556AF-19DB-4B7B-93BF-A67EE0EA8621/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/EF2DB4B2-5512-4C14-BCA3-FA7667170000/Runner.app failed: File name too long Unhandled error domain NSPOSIXErrorDomain, code 63 Command: /usr/bin/xcrun simctl install FFF556AF-19DB-4B7B-93BF-A67EE0EA8621 /Users/user/StudioProjects/app/build/ios/iphonesimulator/Runner.app这有时是由格式错误的 plist 文件引起的:ProcessException: Process exited abnormally: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=63): copyfile of file:///Users/user/StudioProjects/app/build/ ios/iphonesimulator/Runner.app/ 到文件:///Users/user/Library/Developer/CoreSimulator/Devices/FFF556AF-19DB-4B7B-93BF-A67EE0EA8621/data/Containers/Shared/SystemGroup/systemgroup.com.apple。 installcoordinationd/Library/InstallCoordination/PromiseStaging/EF2DB4B2-5512-4C14-BCA3-FA7667170000/Runner.app 失败:文件名太长未处理的错误域 NSPOSIXErrorDomain,代码 63 命令:/usr/bin/xcrun simctl install FFF556AF-19DB-4B7B- 93BF-A67EE0EA8621 /用户/用户/StudioProjects/app/build/ios/iphonesimulator/Runner.app

I couldn't fix it by deleting Derived Data.我无法通过删除派生数据来修复它。 Does somebody knows how to fix this??有人知道如何解决这个问题吗?? i'm stuck with this problem for a while now.我被这个问题困扰了一段时间。 Any help would be appreciated.任何帮助,将不胜感激。 Thank you so much.太感谢了。

  • delete → Runner.xcworkspace → xcuserdata folder删除 → Runner.xcworkspace → xcuserdata 文件夹
  • delete → Pods folder on inside ios folder删除 → ios 文件夹内的 Pods 文件夹
  • delete → ios → flutter → Flutter.podspec删除 → ios → flutter → Flutter.podspec
  • run flutter clean运行 flutter 干净
  • flutter run flutter 跑

Found a fix for this error.找到了此错误的修复程序。 what i did was to reset the simulator (Device -> Erase All Content and Settings), and then run $ flutter clean after that rebuild your app.我所做的是重置模拟器(设备 - >擦除所有内容和设置),然后在重建应用程序后运行 $ flutter clean 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM