{"id":748,"date":"2016-08-15T22:36:17","date_gmt":"2016-08-15T14:36:17","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=748"},"modified":"2016-08-15T22:36:17","modified_gmt":"2016-08-15T14:36:17","slug":"none-of-the-valid-provisioning-profiles-allowed-the-specified-entitlementsbeta-reports-activeaps-environment","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/analysis\/2016\/08\/15\/223617748.html","title":{"rendered":"None of the valid provisioning profiles allowed the specified entitlements:beta-reports-active,aps-environment"},"content":{"rendered":"<p>1\u3001App\u5728Archive\u65f6\u62a5\u5982\u9898\u6240\u793a\u9519\u8bef\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.yusian.com\/blog\/wp-content\/uploads\/2016\/08\/\u5c4f\u5e55\u5feb\u7167-2016-08-15-\u4e0a\u53489.26.56.jpg\" alt=\"\u5c4f\u5e55\u5feb\u7167-2016-08-15-\u4e0a\u53489.26.56\" width=\"600\" height=\"362\" class=\"alignnone size-full wp-image-749\" \/><\/p>\n<p>2\u3001\u9996\u5148\u627e\u5230\u95ee\u9898\u7684\u5173\u952e\u6240\u5728\uff0c\u8fd9\u4e2a\u95ee\u9898\u7684\u5173\u952e\u8bcd\u662fentitlements\uff0c\u8fd9\u662f\u4e2a\u4ec0\u4e48\u4e1c\u897f\u5462\uff1f\u5728Build Settings&#8212;Code signing\u4e2d\u6709\u4e00\u9879Code Signing Entitlements\uff0c\u8fd9\u4e2a\u5c5e\u6027\u503c\u6307\u5411\u4e00\u4e2aentitlements\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4e00\u822c\u957f\u8fd9\u4e2a\u6837\u5b50\uff1a<!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.yusian.com\/blog\/wp-content\/uploads\/2016\/08\/\u5c4f\u5e55\u5feb\u7167-2016-08-15-\u4e0b\u534810.24.23.jpg\" alt=\"\u5c4f\u5e55\u5feb\u7167-2016-08-15-\u4e0b\u534810.24.23\" width=\"450\" height=\"78\" class=\"alignnone size-full wp-image-750\" \/><\/p>\n<p>3\u3001\u4e0d\u77e5\u9053\u4eceXCode\u51e0\u5f00\u59cb\u6709\u8fd9\u4e2a\u6587\u4ef6\u7684\uff0c\u5173\u4e8e\u8be5\u6587\u4ef6\u7684\u8bf4\u660e\uff0c\u5b98\u65b9\u4e5f\u505a\u4e86\u8be6\u7ec6\u7684\u8bf4\u660e\uff1a<a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/Miscellaneous\/Reference\/EntitlementKeyReference\/Chapters\/AboutEntitlements.html\" target=\"_blank\">About Entitlements<\/a><\/p>\n<p>4\u3001\u9519\u8bef\u63d0\u793a\u4e2d\u6709\u63d0\u5230aps-environment\u8bf4\u660e\u4e0e\u63a8\u9001\u6709\u5173\uff0c\u6240\u4ee5\u91cd\u70b9\u770b\u4e0b<strong>Enable Push Notifications for Alerting the User<\/strong><\/p>\n<pre line=\"1\">Push Notification Entitlement Keys\n\nYou set a value for the push notification entitlement by way of your development and distribution provisioning profiles, as described in Local and Remote Notification Programming Guide.\n\nThe following table shows the push notification entitlement keys that apply to the iOS and OS X platforms:\n\nNotification entitlement key\tCapability\naps-environment     Receive push notifications in iOS\ncom.apple.developer.aps-environment    Receive push notifications in OS X\n\nThe entitlement key is different for iOS than it is for OS X. On either platform, however, the provisioning portal assigns a value of development or production to the key, depending only on which activity you are creating the provisioning profile for.\n<\/pre>\n<p>\u521a\u597d\u4e0e\u9519\u8bef\u63d0\u793a\u4e2d\u7684aps-environment\u6709\u5173\u7cfb\uff0c\u5e76\u4e14\u6700\u540e\u4e00\u6bb5\u8bf4\u4e86\u8fd9\u4e2akey\u6709development\u548cproduction\u8fd9\u4e24\u4e2a\u503c\uff0c\u90a3\u5c31\u5e94\u8be5\u662f\u8c03\u8bd5\u4e0e\u53d1\u5e03\u4e24\u79cd\u60c5\u51b5\u4e0b\u7684\u503c\u54af\uff1f\uff01<\/p>\n<p>5\u3001\u6211\u505a\u4e86\u4e00\u4e2a\u5c0f\u5c0f\u7684\u9a8c\u8bc1\uff0c\u5982\u679c\u6211\u5c06\u8be5entitlements\u6587\u4ef6\u4e2d\u7684aps-environment\u8fd9\u4e2a\u952e\u503c\u5bf9\u5220\u6389\uff0cArchive\u662f\u53ef\u4ee5\u6b63\u5e38\u901a\u8fc7\u7684\uff0c\u4f46App\u4f1a\u4e0d\u4f1a\u6709\u95ee\u9898\uff0c\u82f9\u679c\u80fd\u5426\u6b63\u5e38\u5ba1\u6838\u901a\u8fc7\u90a3\u5c31\u4e0d\u4e00\u5b9a\u4e86\u3002\u6b64\u5916\uff0c<strong>\u5728\u53d1\u5e03\u65f6\u5c06aps-environment\u7684\u503c\u6539\u6210production\u65f6<\/strong>\uff0cArchive\u4e5f\u6b63\u5e38\u901a\u8fc7\u4e86\uff0c\u592a\u597d\u4e86\uff01\u7814\u7a76\u4e86\u4e00\u5929\u603b\u7b97\u6709\u4e86\u4e2a\u7ed3\u679c\uff0c\u5e0c\u671b\u5ba1\u6838\u80fd\u987a\u5229\u901a\u8fc7\uff01<\/p>\n<p>PS\uff1a\u7f51\u4e0a\u641c\u7d22\u4e86\u5f88\u591a\u76f8\u5173\u7684\u8d44\u6599\uff0c\u6ca1\u6709\u6b63\u9762\u56de\u7b54\u6216\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u6b64\u5206\u4eab\u7ed9\u5404\u4f4d\u5e0c\u671b\u80fd\u6709\u6240\u4ef7\u503c\u3002\u6b64\u5916\uff0c\u6709\u4e9b\u8bf4\u4e0eXcode8\u6709\u5173\uff0c\u786e\u5b9e\u6211\u7528Xcode8\u6253\u5f00\u8fc7\u9879\u76ee\uff0c\u597d\u50cf\u6709\u79cd\u89e3\u51b3\u8bf4Beta\u7248\u7684Xcode\u53bbArchive\u662f\u4f1a\u6709\u95ee\u9898\uff0c\u8fd9\u4e2a\u4e5f\u503c\u5f97\u6ce8\u610f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001App\u5728Archive\u65f6\u62a5\u5982\u9898\u6240\u793a\u9519\u8bef\uff1a 2\u3001\u9996\u5148\u627e\u5230\u95ee\u9898\u7684\u5173\u952e\u6240\u5728\uff0c\u8fd9\u4e2a\u95ee\u9898\u7684\u5173\u952e\u8bcd\u662fentitlements\uff0c\u8fd9\u662f\u4e2a\u4ec0\u4e48\u4e1c\u897f\u5462\uff1f\u5728Build Settings&#8212;Code signing\u4e2d\u6709\u4e00\u9879Code Signing Entitlements\uff0c\u8fd9\u4e2a\u5c5e\u6027\u503c\u6307\u5411\u4e00\u4e2aentitlements\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4e00\u822c\u957f\u8fd9\u4e2a\u6837\u5b50\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[20],"class_list":["post-748","post","type-post","status-publish","format-standard","hentry","category-analysis","tag-basics"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=748"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/748\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}