【问题标题】:Unable to perform flutter build ios无法执行颤振构建ios
【发布时间】:2021-01-07 14:06:32
【问题描述】:

我在尝试运行应用程序时遇到了依赖问题。因此,我通过 flutter clean 清理了项目,并尝试通过运行 flutter build ios 构建 ios 项目,但即使我在我的ios模拟器。我很高兴收到任何解决方案。

No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID
in Xcode and create an iOS Development Certificate as well as a Provisioning 
Profile for your project by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected. 
     - For Xcode 10, look under General > Signing > Team.
     - For Xcode 11 and newer, look under Signing & Capabilities > Team.
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again
  5- Trust your newly created Development Certificate on your iOS device
     via Settings > General > Device Management > [your new certificate] > Trust

For more information, please visit:
  https://developer.apple.com/library/content/documentation/IDEs/Conceptual/
  AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
No development certificates available to code sign app for device deployment

扑医生:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.60.0)
[✓] Connected device (2 available)

• No issues found!

我还编辑了签名功能,因为错误建议

【问题讨论】:

  • 需要版主干预。我想这是我今天问的问题,因为它看起来很相似。你能删除我的编辑吗?谢谢。

标签: ios flutter


【解决方案1】:

您应该完全按照错误状态进行操作。

  1. 打开 /{ProjectName}/ios/Runner.xcworkspace
  2. 点击左侧的顶级运行器文件
  3. 转到签名和功能
  4. 相应地更改您的团队和捆绑包标识符。

【讨论】:

  • 请注意,您可以将您的“Bundle Identifier”更改为任何出现的内容 - 但重要的细节肯定是改变您的团队!谢谢!
猜你喜欢
  • 2021-05-31
  • 2021-12-18
  • 2021-08-04
  • 2020-11-26
  • 2020-10-05
  • 2020-12-09
  • 1970-01-01
  • 2021-10-15
相关资源
最近更新 更多