ios 如何修复“循环内运行;建设可能会产生不可靠的结果”Xcode错误?

u3r8eeie  于 9个月前  发布在  iOS
关注(0)|答案(2)|浏览(192)

我试图在iPhone上运行Flutter代码,但每当我尝试运行它时,我都会收到以下错误消息:

Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': ExtractAppIntentsMetadata
○ Target 'Runner' has copy command from '/Users/matthewlee/flutterflow/AppName/build/ios/Debug-iphoneos/ImageNotification.appex' to
'/Users/matthewlee/flutterflow/AppName/build/ios/Debug-iphoneos/Runner.app/PlugIns/ImageNotification.appex'
○ Target 'Runner' has compile command with input '/Users/matthewlee/flutterflow/AppName/ios/Runner/Base.lproj/LaunchScreen.storyboard'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/matthewlee/flutterflow/AppName/build/ios/Debug-iphoneos/Runner.app/Info.plist'

字符串
我一直在尝试在Xcode中重新安排构建阶段,但似乎还没有任何效果。如何解决这个阻止应用运行的问题?

s3fp2yjn

s3fp2yjn1#

我做了第一个方法没有工作,我做了最后一个,为我工作。
第一步(从Xcode菜单栏中选择Product > Clean Build Folder来清理项目。删除项目的DerivedData文件夹。您可以通过从菜单栏中选择Xcode > Preferences找到此文件夹,然后单击Locations选项卡。DerivedData文件夹在DerivedData下列出。通过从Xcode菜单栏中选择Product > Build重建项目。
之后
2.将Thin Binary构建阶段拖到列表底部。从Xcode菜单栏中选择Product > Build重新构建项目。

qnyhuwrf

qnyhuwrf2#

这里有一些常见的解决方案来修复构建问题。
1.从Xcode菜单栏中选择Product > Clean Build Folder来清理您的项目。
1.删除项目的DerivedData文件夹。在菜单栏中选择Xcode > Preferences,然后单击Locations标签,即可找到该文件夹。DerivedData文件夹在DerivedData下列出。
1.从Xcode菜单栏中选择Product > Build重新构建项目。
如果上述步骤不起作用,您可以尝试以下操作:

  • 在Xcode中打开项目,选择Runner目标。
  • 点击Build Phases选项卡。
  • ExtractAppIntentsMetadata构建阶段拖到列表底部。
  • 从Xcode菜单栏中选择Product > Build重新构建项目。

如果您仍然遇到问题,可以尝试以下操作:

  • 在Xcode中打开项目,选择Runner目标。
  • 点击Build Phases选项卡。
  • Thin Binary构建阶段拖到列表底部,在Xcode菜单栏中选择Product > Build,重新构建项目。

相关问题