Runner.app/Runner.app/...无限循环Xcode构建失败
Posted
技术标签:
【中文标题】Runner.app/Runner.app/...无限循环Xcode构建失败【英文标题】:Runner.app/Runner.app/... infinite cycle Xcode build failed 【发布时间】:2021-02-14 13:24:49 【问题描述】:当我尝试构建我的应用程序时,我在控制台中收到此错误:
Xcode build done. 114,3s
Failed to build ios app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: '/Users/paul/androidStudioProjects/Chronopsi/build/ios/Debug-iphoneos/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.app/Runner.app/Runner.app/Runner.app' is longer than filepath buffer size (1025). (in target 'Runner' from project 'Runner')
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
我使用的是 Xcode 11.3.1
我有最新版本的 Flutter。
我尝试构建另一个我几个月前已经构建的旧应用程序,它运行良好。
编辑: 我试图将构建更改为旧版,但我得到了同样的错误,它仍然在说“注意:使用新的构建系统”,而在我的日志中它说“检测到旧版构建系统”......
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Legacy build system detected, removing /Users/paul/AndroidStudioProjects/Chronopsi/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
Running pod install...
Running Xcode build...
Xcode build done. 57,2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: '/Users/paul/AndroidStudioProjects/Chronopsi/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.app/Runner.app/Runner.app/Runner' is longer than filepath buffer size (1025). (in target 'Runner' from project 'Runner')
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
【问题讨论】:
Runner 是否处于 Xcode 构建阶段 -> 复制捆绑资源? 是的,我要删除它吗? 嗯,应该解决了 它成功了,谢谢 :)(对于那些有同样问题的人也不要忘记运行 flutter clean after) @Nuts 如果你想要赏金,我让你写答案;) 【参考方案1】:检查您的 Xcode:Targets Runner -> Build Phases -> Copy Bundle Resources。
如果 Runner 在列表中,请将其删除并执行flutter clean
【讨论】:
以上是关于Runner.app/Runner.app/...无限循环Xcode构建失败的主要内容,如果未能解决你的问题,请参考以下文章