flutter build ipa 返回:exportArchive:“Runner.app”需要配置文件

Adr*_*var 7 code-signing ios flutter codemagic

== Building for iOS ==

> xcode-project use-profiles
Configure code signing settings
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.mobileprovision
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.provisionprofile
List available code signing certificates in keychain /Users/builder/Library/codemagic-cli-tools/keychains/10-08-22_lujifhgh.keychain-db
Searching for files matching /Users/builder/clone/ios/**/*.xcodeproj
Completed configuring code signing settings
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Debug] from project "Runner"
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Profile] from project "Runner"
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Release] from project "Runner"
Generated options for exporting the project
 - Method: app-store
 - Provisioning Profiles:
     - com.globaltekne.dollsplasticsurgeryapp: codemaProfile
 - Signing Certificate: Apple Distribution
 - Signing Style: manual
 - Team Id: 7T9LTCB672
Saved export options to /Users/builder/export_options.plist

> flutter build ipa --release --export-options-plist /Users/builder/export_options.plist
Running "flutter pub get" in clone...                            1,916ms
Archiving com.golbaltekne.dollsplasticsurgeryapp...
Automatically signing iOS for device deployment using specified development team in Xcode project: 7T9LTCB672
Running pod install...                                           2,605ms
Running Xcode build...                                          
Xcode archive done.                                         107.6s
Built /Users/builder/clone/build/ios/archive/Runner.xcarchive.

 Building with sound null safety 

Building App Store IPA...                                        1,793ms
Encountered error while creating the IPA:
error: exportArchive: "Runner.app" requires a provisioning profile.

Try distributing the app in Xcode: "open /Users/builder/clone/build/ios/archive/Runner.xcarchive"
Run Code Online (Sandbox Code Playgroud)

Kau*_*dru 6

在 xcode 中打开 xcworkspace 文件。选择跑步者并选择应用程序目标。然后选择相关的签约团队。保持启用自动签名选项处于启用状态。然后点击产品->存档。完成后,应该会出现一个窗口(如果没有转到 xcode 中的 windows - Organizer),显示存档。单击分发应用程序,然后选择导出或分发。分发时可以选择发布或调试模式

预览

  • 我的“存档”菜单项被禁用,因为我选择了模拟器设备。一旦我选择“任何 IOS 设备”,该项目就会启用。我花了一段时间才弄清楚我的错误。 (7认同)