扑 IOS 签名问题 “Runner”需要具有推送通知功能的配置文件

问题描述

在我的 Flutter 项目中,我使用 Codemagic 作为 CI/CD 工具。 将风味添加到应用程序后,我开始在其中一种风味上收到此错误

> Flutter build ios --release --no-codesign --build-name=0.0.1 --build-number=33 --flavor dev
Downloading ios tools...                                            2.4s
Downloading ios-profile tools...                                    1.5s
Downloading ios-release tools...                                    7.3s
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building se.getgaston.app for device (ios-release)...
Running pod install...                                            323.3s (!)
Running Xcode build...                                          
Xcode build done.                                           875.6s
Built /Users/builder/clone/build/ios/iphoneos/Runner.app.

> xcode-project build-ipa --workspace /Users/builder/clone/ios/Runner.xcworkspace --scheme dev --config Release-dev
Archive Runner.xcworkspace
Execute "xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme dev -config Release-dev -archivePath build/ios/xcarchive/Runner_j1t8laki.xcarchive archive COMPILER_INDEX_STORE_ENABLE=NO DEVELOPMENT_TEAM=28759WZ2NP 'CODE_SIGN_IDENTITY=iPhone distribution'"

❌  error: "Runner" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Runner' from project 'Runner')

我检查了工作风格和签名问题的证书、配置文件和应用 ID,没有发现任何区别。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)