xcode 错误:在搜索路径中找不到包含的文件“Generated.xcconfig”(在目标“Runner”中)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/54321180/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:53:38  来源:igfitidea点击:

Error: Could not find included file 'Generated.xcconfig' in search paths (in target 'Runner')

xcodeflutter

提问by Swift Guy

I have created a Flutter project in Android Studio. It runs fine on Android devices but when I try to run it on Xcode, I get error as:

我在 Android Studio 中创建了一个 Flutter 项目。它在 Android 设备上运行良好,但是当我尝试在 Xcode 上运行它时,出现以下错误:

Build system information error: /Users/Downloads/flutter_wallpaper-master 2/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner')

构建系统信息错误:/Users/Downloads/flutter_wallpaper-master 2/ios/Flutter/Debug.xcconfig:1:在搜索路径中找不到包含文件“Generated.xcconfig”(在目标“Runner”中)

Can anyone help me on how to solve this issue?

任何人都可以帮助我解决这个问题吗?

回答by Austin Chen

Try running flutter build iosand then rerun in Xcode

尝试运行flutter build ios,然后在 Xcode 中重新运行

回答by Malik iOS

Please follow these steps/run commands

请按照这些步骤/运行命令

  1. flutter clean (in terminal)
  2. flutter build (in terminal)
  3. In Xcode, then clean project
  4. In Xcode, then build project
  1. 颤动清洁(在终端中)
  2. 颤振构建(在终端中)
  3. 在Xcode中,然后清理项目
  4. 在Xcode中,然后构建项目

The error should have gone now :)

错误现在应该已经消失了:)