【问题标题】:Flutter. IOS signing issue. "Runner" requires a provisioning profile with the Push Notifications feature扑。 IOS 签名问题。 “Runner”需要具有推送通知功能的配置文件
【发布时间】:2021-05-04 14:20:53
【问题描述】:

在我的颤振项目中,我使用 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 的工作风格和签名问题,没有发现任何区别。

【问题讨论】:

  • 嗨!你是如何找到解决这个问题的?谢谢!
  • 是的,我通过在 iOS 签名选项中指定捆绑包来修复它
  • 请@Leo

标签: ios flutter signing


【解决方案1】:

这对我有帮助 enter link description here

我的命令是flutter build ipa --export-options-plist path/to/export.plist --build-number=123 --release --flavor=prod --dart-define=FLAVOR=prod

示例 export.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>compileBitcode</key>
    <true/>
    <key>method</key>
    <string>enterprise</string>
    <key>provisioningProfiles</key>
    <dict>
        <key>com.company.appname</key>
        <string>provisioningProfiles name </string>
    </dict>
    <key>signingCertificate</key>
    <string>iOS Distribution</string>
    <key>signingStyle</key>
    <string>manual</string>
    <key>stripSwiftSymbols</key>
    <true/>
    <key>teamID</key>
    <string>xxxxxx</string>
    <key>thinning</key>
    <string>&lt;none&gt;</string>
</dict>
</plist>

【讨论】:

    猜你喜欢
    • 2018-03-03
    • 2019-12-26
    • 2021-12-04
    • 1970-01-01
    • 2016-03-23
    • 2021-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多