jpush / jpush-phonegap-plugin

JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
925 stars 350 forks source link

jmessage 与jpush 再次冲突 #406

Closed lingdu0001 closed 5 years ago

lingdu0001 commented 5 years ago

WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。

你的运行环境 插件版本: 平台(Android / iOS): IOS Cordova version (cordova -v) : 8.1.2 Cordova platform version (cordova platform ls): 5.0.1 Ionic Version (if using Ionic) 3.20.1 期望效果 jmessage 与jpush 可以并存

实际效果 冲突了 构建ios的时候报错 ❌ duplicate symbol __launchOptions in

AppDelegate+JMessage.o AppDelegate+JPush.o

❌ ld: 1 duplicate symbol for architecture arm64

❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)

重现步骤 安装jpush插件 安装jmessage插件 构建ios 报错。。 升级到最新版本 卸载安装插件,也是老样子

pierresh commented 4 years ago

Hello,

I have the same problem, could you please share how you solved that problem? Thanks!

pierresh commented 4 years ago

Here is the solution:

in /plugins/jpush-phonegap-plugin/src/ios/Plugins

Open AppDelegate+JPush.m and rename the 3 occurences _launchOptions as _launchOptions2

Then:

cordova platform remove ios
cordova platform add ios@5.1.1
lingdu0001 commented 4 years ago

Here is the solution:

in /plugins/jpush-phonegap-plugin/src/ios/Plugins

Open AppDelegate+JPush.m and rename the 3 occurences _launchOptions as _launchOptions2

Then:

cordova platform remove ios
cordova platform add ios@5.1.1

Solution for android:

In /plugins/jmessage-phonegap-plugin/plugin.xml Comment lines which contains PushService PushReceiver AlarmReceiver and DataProvider.