我正在尝试为我的Flutter应用程序构建iOS捆绑包。然而,尽管我尽了最大努力,捆绑包还是没有得到BuildName和BuildNumber。
我尝试了官方文档中的解决方案,Flutter没有使用pubspec.yaml和How to set build and version number of Flutter app中的构建号,涉及Info.plist和project.pbxproj文件。
下面是在命令行参数中指定构建名称和编号后的输出结果?
% flutter build ipa --obfuscate --split-debug-info=./debug-info --build-name "1.0.0" --build-number 6
Archiving com.____________.app...
Automatically signing iOS for device deployment using specified development team in Xcode project: __________
Running Xcode build...
└─Compiling, linking and signing... 21.1s
Xcode archive done. 266.8s
Built /Users/__/development/__/__/build/ios/archive/Runner.xcarchive.
[!] App Settings Validation
! Version Number: Missing
! Build Number: Missing
• Display Name: __
• Deployment Target: 13.0
• Bundle Identifier: __
! You must set up the missing app settings.
To update the settings, please refer to https://docs.flutter.dev/deployment/ios
我还能做什么来解决这个问题?
1条答案
按热度按时间s71maibg1#
对我来说,解决方案是打开Xcode,打开Runner > Project > Runner > Info > Configurations,并将release > Runner的值设置为Generated。