使用iOS推送時警告錯誤的解決方法
在使用iOS推送時,出現(xiàn)下面錯誤:
**[1412:60b] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. **[1412:60b] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
解決方法:PORJECT --> Capabilities --> Background Modes --> Background fetch & Remote notifications -->選中為on 狀態(tài)
我還遇到一種情況
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
破解方法還 和上面是一樣的,如圖

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
相關文章
iOS應用開發(fā)中UIView添加邊框顏色及設置圓角邊框的方法
這篇文章主要介紹了iOS應用開發(fā)中UIView添加邊框顏色及設置圓角邊框的方法,代碼基于傳統(tǒng)的Objective-C,需要的朋友可以參考下2016-02-02
iOS應用中存儲用戶設置的plist文件的創(chuàng)建與讀寫教程
這篇文章主要介紹了iOS應用中存儲用戶設置的plist文件的創(chuàng)建與讀寫教程,plist文件是在Xcode下的項目中會被自動生成,里面采用XML格式記錄數據,需要的朋友可以參考下2016-04-04
iOS 報clang: error: no input files錯誤的解決方法
這篇文章主要給大家介紹了關于iOS報clang: error: no input files錯誤的解決方法,文中通過圖文介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧。2018-01-01

