简体   繁体   English

在 iPhone 上使用 flutter 运行程序

[英]Run program on iPhone with flutter

Hello I am having a problem running my program on my iphone, when I put "run" it gives me this error.您好,我在我的 iphone 上运行我的程序时遇到问题,当我输入“运行”时,它给了我这个错误。 Can anyone help me?谁能帮我? Thanks!谢谢!

error:错误:

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

when I try to enter this link it says it is unavailable: enter image description here" https://developer.apple.com/library/content/documentation/IDEs/Conceptual/ "当我尝试输入此链接时,它说它不可用:在此处输入图像描述“ https://developer.apple.com/library/content/documentation/IDEs/Conceptual/

flutter doctor:扑医生:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76,
    locale pt-PT)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

• No issues found!

iOS development is a bit different from Android, wherein development can only be started once you register for a development account and generate developer credentials. iOS 开发与 Android 有点不同,只有在您注册开发帐户并生成开发人员凭据后才能开始开发。

Please follow the steps from the stacktrace to generate a Development and Provisioning Certificate from the Apple Developer Account.请按照堆栈跟踪中的步骤从 Apple 开发人员帐户生成开发和供应证书。 Then use XCode to configure them in project using the Runner file.然后使用 XCode 使用 Runner 文件在项目中配置它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM