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

公司账号过期,真机调试工程,报下边的错误:

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

此时无论怎么修改你的bundleID 打算让Xcode自动生成描述文件,你的工程都是调试不了的,解决方法如下:

1.在projectName.xcodeproj文件上右键“显示包内容”,用文本编辑器打开“project.pbxproj”文件

The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program_第1张图片
屏幕快照 2017-02-21 上午9.58.26.png

2.查找:

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

修改为:

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

3.重新编译即可

你可能感兴趣的:(The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program)