iOS10 push error NSCocoaErrorDomain Code=3000

The program is in the foreground
2016-09-18 16:26:44.812173 HengTaiXinGolf[394:26036] Notification error = Error Domain=NSCocoaErrorDomain Code=3000 "The authorization string for the application "aps-environment" was not found" UserInfo={NSLocalizedDescription=The application was not found The authorization string of the "aps-environment" of the program}
2016-09-18 16:26:45.592830 HengTaiXinGolf[394:26036] setAppleBadgeNumber 0 ECError <ECError: 0x19da12d0>
2016-09-18 16:26:46.526365 HengTaiXinGolf[394:26359] 2016-09-18 16:26:46.525 | JPUSH | W - [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
2016-09-18 16:26:46.525 | JPUSH | W - [JPUSHClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
XCode new features
Signing Made Easy and Powerful
Device settings and code signing have been greatly simplified. The new automated code management system can help developers automatically sign the resources they need, so that the code can be correctly signed, invoked and executed in your Apple device application. Developers can also choose to manually configure files and set up signature programs for each build configuration. If any problems are encountered, the report navigator will alert you with error messages and logs that need improvement. When you have multiple Macs, Xcode will automatically generate the corresponding developer certificate in each Mac
Developing and running your application on your Apple device is as easy as entering the Xcode preferences and entering the Apple ID. An Apple developer account is not required.
The Provisioning Profile file selection has been moved from Buid Settings to General, and Deprecated has been marked in Buid Settings.
Capabilities
If you use Xcode8 and above for development, please turn on the Capabilities->Push Notifications option of Application Target, as shown in the figure


Guess you like

Origin blog.csdn.net/qq_27247497/article/details/52583051