目标debug_ios_bundle_flutter_assets失败:

vjhs03f7  于 2023-06-25  发布在  iOS
关注(0)|答案(1)|浏览(354)

使用flutter创建IOS应用程序时遇到问题。谁能帮我解决这个问题??
正在调试模式下在iPhone 14 Pro上启动lib/main.dart...正在运行Xcode构建... Xcode build完成7.7s无法构建iOS应用程序错误(Xcode):目标debug_ios_bundle_flutter_assets失败:异常:无法使用identity -codesign /Users/vijaidwivedi/Projects/users/build/ios/Debug-iphonsimulator/App.framework/App。
无法为模拟器生成应用程序。在iPhone 14 Pro上启动应用程序时出错。
已尝试删除构建目录清理flutter应用程序更新应用程序发布
但是没有用。

omqzjyyz

omqzjyyz1#

和你有同样的错误
这个错误来后,我安装flutter_launcher_icons和gen的icon.png与阿尔法从图像中删除
在这个更新的库版本中,你可以保留alpha标志,并使用pubspec中的设置

flutter_launcher_icons:
  android: "launcher_icon"
  image_path: " " 
  remove_alpha_ios: true

让一切都重生,解决了我的问题

相关问题