尝试运行我的 flutter 应用程序,但无法在 flutter 上构建 iOS 应用程序

问题描述 投票:0回答:1

尝试使用我的 flutter 应用程序,但我不断得到

Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running Xcode build...                                                  
Xcode build done.                                           32.1s
Failed to build iOS app
Error (Xcode): Build input file cannot be found: '/Users/user/Documents/GitHub/chat_board/ios/bundle identifier/Info.plist'. Did you forget to
declare this file as an output of a script phase or custom build rule which produces it?


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

扑扑干净 flutter build ios(这也给了我一个错误)

ios flutter dart flutter-dependencies
1个回答
0
投票

Info.plist
文件似乎位于错误的位置。一般是
project_name/ios/Runner/Info.plist
。 如果 Info.plist 位于正确的位置,请检查您在 ios 项目中指向 Info.plist 路径的位置。对于这个打开的 Xcode,转到
Targets -> Runner -> Build Settings
,然后搜索
Info.plist file
并查看是否为所有模式给出了正确的路径。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.