JPush,Jverify,JCore Ios衝突 apiRecord:methodName

極光的坑太多了

IOS底下,setup的時候報錯:

NSInvalidArgumentException', reason: '+[JCOREService apiRecord:methodName:]: unrecognized selector sent to class
flutter: | JPUSH | Flutter | applyPushAuthority:
+[JCOREService apiRecord:methodName:]: unrecognized selector sent to class 0x1052f0060
flutter: | JPUSH | Flutter | addEventHandler:

解決:

這個是缺少庫引起,需要把JPush升級到最新的庫,3.2.0。

點開ios目錄下.symlinks/plugins,打開jpush_flutter/ios/jpush_flutter.podspec文件,修改如下兩行:

我的jpush_flutter.podspec:

  s.version          = '0.0.1'
  s.dependency 'JCore','3.2.0'
  s.dependency 'JPush','4.4.0'

jverify_podspec:

s.name = 'jverify'
s.version = '0.0.1'
s.dependency 'JCore', '3.2.0'
s.dependency 'JVerification', '2.7.9'

pubspec.yaml:

  jpush_flutter: ^2.2.9 #極光推送
  jverify: ^2.2.5 #極光驗證

 

另外一個也是經常遇到的問題:Jpush,Jverify的版本衝突問題,記錄下

https://blog.csdn.net/weixin_29003023/article/details/120298366

 

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