iOS真機調試失敗(一)

The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program

解決辦法:

1、Delete the certificate from the keychain. Remove your account from the xcode->preference->Accounts. Add your account again. The issue will be resolved. The remote notification feature is not available for free apple developer account.


2、Here is a shortcut for those who tried the delete certificate way but still not working:

Find your project's projectName.xcodeproj,click "open content",edit "project.pbxproj" with a txt editor :

change:

com.apple.Push = { 
enabled = 1; 
};

into:

com.apple.Push = { 
enabled = 0; 
};

Redo the build and this time no error on push : )

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