iOS 真机调试报错 The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program.

真机调试遇到有推送的Demo,会报这个错误,解决的方法很简单
1.在projectName.xcodeproj文件上右键“显示包内容”,用文本编辑器打开“project.pbxproj”文件
查找:
com.apple.Push = {
enabled = 1;
};
修改为:
com.apple.Push = {
enabled = 0;
};
2.在build settings里搜索code sign,修改如下图:

iOS 真机调试报错 The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program._第1张图片
C3EBFCFD-B5EA-4CCC-8F21-26F75C557892.png

你可能感兴趣的:(iOS 真机调试报错 The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program.)