Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 无法在Flatter下运行第一个项目_Flutter - Fatal编程技术网

Flutter 无法在Flatter下运行第一个项目

Flutter 无法在Flatter下运行第一个项目,flutter,Flutter,我启动了IntellijIDE,并单击CreatenewProject 我选择了Android仿真器:Nexus5s,仿真器正常打开 我单击绿色箭头运行,但收到以下错误消息: Mac with Mojave Flutter installed Flutter Doctor passed all the tests Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1

我启动了IntellijIDE,并单击CreatenewProject

我选择了Android仿真器:Nexus5s,仿真器正常打开

我单击绿色箭头运行,但收到以下错误消息:

Mac with Mojave
Flutter installed
Flutter Doctor passed all the tests

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Community Edition (version 2018.3)
[✓] Connected device (2 available)

有什么想法吗?

它似乎试图在没有有效证书的ios设备上运行。弗利特医生说有两个设备连接在一起。如果您的计算机上连接了一个ios设备,请尝试断开它的连接,以便Flatter不会尝试使用它而不是模拟器。

看起来它试图在没有有效证书的ios设备上运行?(弗利特医生说有两个设备连接)嗯,是的。我把我的iPhone连接到我的Mac电脑上。我用iPhone断开了连接,现在它正在运行。如果您将此转换为答案,我将认为您已完成,请标记为答案。即使我已连接到模拟器,我也会收到相同的错误。这里有相同的问题。。。
════════════════════════════════════════════════════════════════════════════════
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- In the 'General' tab, make sure a 'Development Team' is selected. 
     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
════════════════════════════════════════════════════════════════════════════════
Finished with error: No development certificates available to code sign app for device deployment