ios - 无法执行 flutter 构建 ios

标签 ios flutter

我在尝试运行应用程序时遇到了依赖性问题。因此,我通过 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/

    相关文章:

    ios - 在调用另一个引用 self 的方法的 block 内调用一个方法会导致保留周期吗?

    android - 由于 Auth,应用程序和服务器紧密耦合

    flutter - 找不到路线生成器

    ios - 从 UICollectionView 的 viewForSupplementaryElementOfKind 获取 NSFetchedResultsController 部分对象

    ios - 无法禁用 ionic ios "rubber band" View

    AppStore 发布后 iOS 应用程序崩溃

    整个 Flutter 应用程序的 Redux 状态不工作

    sqlite - Flutter:在我的应用程序中哪里放置 sqflite 代码?

    flutter - 如何使用 Navigator 将数据传递到 Flutter 中的上一个屏幕? (需要处理所有情况 : swipe to go back, 回按等)

    Flutter、原生Admob、广告加载失败: 0