Ios 颤振错误:‘;无外形;xxx和x2019;发现:Xcode无法’;找不到任何与‘;xxx和x2019;

Ios 颤振错误:‘;无外形;xxx和x2019;发现:Xcode无法’;找不到任何与‘;xxx和x2019;,ios,iphone,xcode,flutter,provisioning-profile,Ios,Iphone,Xcode,Flutter,Provisioning Profile,我试图在iPhone上测试一个颤振应用程序,但我得到如下所示的错误,这个错误发生在构建步骤中 error: No profiles for 'xxx' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'xxx'. Automatic signing is disabled and unable to generate a profile. To enable autom

我试图在iPhone上测试一个颤振应用程序,但我得到如下所示的错误,这个错误发生在构建步骤中

error: No profiles for 'xxx' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'xxx'.  Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
在跑步时,我面临着这个错误

Launching lib/main.dart on Test’s iPhone in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Automatically signing iOS for device deployment using specified development team in Xcode project: FF3XTSVPAA
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Running Xcode build...
Xcode build done.                                            7.1s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-12-07 16:43:22.754 xcodebuild[58078:524500]  DTDeviceKit: deviceType from 49f62dac6f1da634e5d71981db4d591dc9126e4b was NULL
    2020-12-07 16:43:22.848 xcodebuild[58078:524500]  DTDeviceKit: deviceType from 49f62dac6f1da634e5d71981db4d591dc9126e4b was NULL
    2020-12-07 16:43:27.506 XCBBuildService[58089:524662] Failed to remove: /Users/pkimac/Library/Developer/Xcode/DerivedData/Runner-aeyppfmredercraizkomsbeyvogn/Build/Intermediates.noindex/XCBuildData/8a97fdf5f2a949e7c436c417eb175882-desc.xcbuild: unlink(/Users/pkimac/Library/Developer/Xcode/DerivedData/Runner-aeyppfmredercraizkomsbeyvogn/Build/Intermediates.noindex/XCBuildData/8a97fdf5f2a949e7c436c417eb175882-desc.xcbuild): No such file or directory (2)
    ** BUILD FAILED **


Xcode's output:
↳
    note: Using new build system
    note: Planning build
    note: Constructing build description
    error: No profiles for 'com.duytq.flutterchatdemo' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.duytq.flutterchatdemo'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'abseil' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'nanopb' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')

Could not build the precompiled application for the device.
Error launching application on Test’s iPhone.

如何创建资源调配配置文件?在iPhone上运行我的应用程序应该怎么做?

实际上有一些步骤可以解决这个问题:

配置配置文件是一个二进制文件,可用于在设备上运行应用程序,并在开发应用程序时使用其服务。 要将应用程序分发到应用商店,您需要创建分发资源调配配置文件,以获得苹果的批准。在这种情况下,您的生成将与生产网关进行签名

要将Flatter应用程序部署到物理iOS设备,您需要在Xcode中设置物理设备部署和Apple开发人员帐户。如果你的应用程序使用的是flatter插件,你还需要第三方CocoaPods依赖管理器

  • 打开终端并运行这些命令,以安装用于将颤振应用部署到iOS设备的工具。通过运行以下命令:

    sudo gem install cocoapods
    
  • 按照Xcode签名流程设置项目:

    a。通过在flift项目目录的终端窗口中运行Open
    ios/Runner.xcworkspace
    ,打开项目中的默认Xcode工作区

    b。在运行按钮旁边的设备下拉菜单中选择要部署到的设备

    c。在左侧导航面板中选择
    Runner
    项目

    d。在Runner目标设置页面中,确保选择了您的开发团队。用户界面因您的Xcode版本而异

    • 对于Xcode 11及更新版本,请查看
      Signing&Capabilities>Team.
    当您选择一个团队时,Xcode将创建并下载一个开发证书,向您的帐户注册您的设备,并创建并下载一个配置文件(如果需要)

    • 要启动第一个iOS开发项目,您可能需要使用Apple ID登录Xcode

    任何Apple ID都支持开发和测试。要将您的应用分发到app Store,需要注册Apple Developer程序。有关成员资格类型的详细信息,请参见

    然后,转到iOS设备上的设置应用程序,选择
    常规>设备管理
    并信任您的证书。对于第一次使用的用户,您可能需要选择
    General>Profiles>devicemanagement

    • 如果在Xcode中自动签名失败,请验证项目的
      General>Identity>Bundle标识符
      值是否唯一

  • 通过运行
    flatterrun
    或单击Xcode中的run按钮启动应用程序

  • 要创建配置文件,请按照上的说明进行操作

    下载手动资源调配配置文件,下载


    有关更多信息,请参见:

    在Xcode中单击左侧栏中的项目后,需要在“常规设置”下添加团队。对于其他错误,您需要将项目和包的最小构建目标设置为8.0,因为最新的Xcode和iOS版本不支持iOS 8。希望Flatter团队很快将最小构建更改为iOS 9,这样就不需要手动步骤了