ios - Flutter:无法在 build/ios/iphonesimulator/Runner.app 找到构建的应用程序包

标签 ios xcode flutter visual-studio-code

我正在尝试从 VSCode 以 Debug模式运行我的应用程序。但是,每次,无论我是在模拟器上还是在真实设备上运行,调试控制台都会输出

Could not find the built application bundle at build/ios/iphonesimulator/Runner.app.

Could not find the built application bundle at build/ios/iphoneos/Runner.app.

当我进入指定目录时,我的应用程序包每次都会被构建,但不是被命名为 Runner.app,而是被命名为 MyAppName.app。我怀疑名称的差异导致 VSCode 编译器无法找到 Runner.app。

我的问题:如何更改build设置以便构建包再次命名为 Runner.app?

最佳答案

您可能已将显示名称从运行者更新为您的应用名称

只需在 Xcode 中打开您的项目并将“Runner”放回到显示名称中 如果您想更改应用程序名称,请进入 info.plist 并从那里更改 bundle 名称。

Check this image

注意:更改此项不会影响您应用的显示名称。

关于ios - Flutter:无法在 build/ios/iphonesimulator/Runner.app 找到构建的应用程序包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57980900/

相关文章:

ios - 为自定义 Scenekit 渲染匹配 ARSCNView 转换?

swift - Xcode 无法识别新的测试函数

ios - 将 cocoapods 添加到使用 cordova 6.5 创建的 iOS 工作区

ios - mach-o 链接器错误重复符号。 header 中没有导入的 .m 文件或声明

flutter - Dart方法有错误,但不返回错误

ios - 如何从其 subview 之一获取 UITableViewCell

iOS 将 WIFI 设置传递给蓝牙(BLE)设备?

ios - 无法将数据从 Collection View 传递到 Xcode 中的详细信息 View

dialog - 如何关闭 flutter 对话框?

flutter - 在 flutter 中组合使用 3 个输入值时出现问题