gpt4 book ai didi

ios - 无法执行 flutter 构建 ios

转载 作者:行者123 更新时间:2023-12-04 01:13:50 24 4
gpt4 key购买 nike

我在尝试运行应用程序时遇到了依赖性问题。因此,我通过 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 医生:
rishikrishna@Rishikrishnas-MacBook-Pro ios % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/macos#android-setup for
detailed instructions.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.49.1)

[✓] Connected device (1 available)

! Doctor found issues in 1 category.

最佳答案

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

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

  • Xcode image

    关于ios - 无法执行 flutter 构建 ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63992938/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com