ios上架錯誤收集:ITMS-90078: Missing Push Notification Entitlement

因爲用對跨平臺開發,對iOS開發不熟,在上架過程中出現如下錯誤,通過郵件對形式發送過來的。

內容如下:

App Store Connect

Dear Developer,

We identified one or more issues with a recent delivery for your app, “appname” 2.0.0 (1.1.4). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature’s entitlements do not include the “aps-environment” entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the “aps-environment” entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor’s Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team

大概問題意思

這裏通過翻譯,知道了大概意思是app使用了推送但是並沒有進行相關的設置,官網有提到過,這個並不影響審覈的通過,但是可能會每次發一個新版本都會出現這樣個郵件,如果你煩這個都話,可以試着採用以下方法進行問題都解決

兩種解決方法

  • 1 在網頁中進行修改
  • 2 在xcode中進行修改

在這裏插入圖片描述
上面都截圖包含了兩種方法,不過第二個截圖原文沒有那麼清晰,這裏爲上傳一張自己的。

原文的:
在這裏插入圖片描述

自己的:
在這裏插入圖片描述
在對應的位置
輸入:DISABLE_PUSH_NOTIFICATIONS=1

這樣差不多就可以了,一定要查仔細了,我這可是第二次上傳了😭

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章