Ios 颤振在Xcode上运行,但不';t对VS代码

Ios 颤振在Xcode上运行,但不';t对VS代码,ios,xcode,flutter,Ios,Xcode,Flutter,我试图在VS代码内的真实iOS设备上运行我的应用程序,但我在配置配置文件方面有一个错误,我已经将配置配置文件设置为自动,并且还设置了我的开发团队,所有东西都在Xcode中工作,但在VS代码中不工作 以下是错误: No Provisioning Profile was found for your project's Bundle Identifier or your device. You can create a new Provisioning Profile for your proje

我试图在VS代码内的真实iOS设备上运行我的应用程序,但我在配置配置文件方面有一个错误,我已经将配置配置文件设置为自动,并且还设置了我的开发团队,所有东西都在Xcode中工作,但在VS代码中不工作

以下是错误:

No Provisioning Profile was found for your project's Bundle Identifier or your 
device. You can create a new Provisioning Profile for your project in Xcode for 
your team 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

It's also possible that a previously installed app with the same Bundle 
Identifier was signed with a different certificate.

For more information, please visit:
 https://flutter.dev/setup/#deploy-to-ios-devices

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
2020-01-09 10:18:45.163 ios-deploy[43201:5238881] [ !! ] Error 0xe8008015: A valid provisioning profile for this executable was not found. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not install build/ios/iphoneos/Runner.app on 2fd298b64f27b47f0917050a9f7ec70cdc98f033.
Try launching Xcode and selecting "Product > Run" to fix the problem:
 open ios/Runner.xcworkspace
Xcode版本11.3

我已经检查自动管理签名


解决方案
  • 在颤振项目上运行“颤振清理”
  • 在xcode->build->clean中
  • 运行“颤振构建包”

  • 我现在没有用我的mac电脑,所以我不能给你确切的指示;但请尝试使用Xcode打开应用程序,查找配置文件,并尝试使用自动管理签名

    如果我没记错的话,应该是在general>signing。您可能需要单击Xcode左侧的某个地方的目标或运行程序。然后在进行更改后,再次尝试通过VS代码运行应用程序。

    这些步骤可以正常工作

  • 运行“颤振清洁”
  • 关于xcode->build->clean中的颤振项目
  • 运行“颤振构建包”

  • 如果您正在真实设备中运行代码。我们会犯这样的错误。通过将测试设备添加到您的apple developer测试设备列表中,我已经解决了这个问题。

    嗨,谢谢您的回答,我更新了帖子,表明我已经选中了该选项,但我不确定这是否是我应该做的,因为我仍然有相同的错误,这很奇怪。您是否尝试过通过xcode清理项目。xcode中有一个类似于“干净构建”的动作,可以在上面的工具栏中找到。或者在项目文件夹中运行flutter clean命令并重试?谢谢,这就是解决方案。fluuter clean and build->clean这对我很有效。最后现在,我可以在iOS设备上运行应用程序时在VSCode中调试flifter。真是个救命恩人!!!