项目:使用Firebase的Ionic3应用程序(用于auth、db和push消息)和Google登录
问题:在为IOS编译时使用Undefined symbols for architecture ..
。问题可能是这两个cordova插件之间不兼容。详细信息请参见这缺陷
使用的版本:
由于升级到ionic4还不是一个选项,这两个插件是必要的,我们正在寻找一个解决办法。
发布于 2019-05-17 11:59:48
解决此问题的解决方案(解决方法)是用分叉版本替换cordova-plugin-firebase:
"cordova-plugin-firebase": "git+https://github.com/vash15/cordova-plugin-firebase.git#master",
您还需要添加cordova-plugin支持:
"cordova-plugin-cocoapod-support": "1.6.0",
在您的config.xml中,可以设置不同的防火墙组件的版本:
<platform name="ios">
<preference name="pods_ios_min_version" value="9.0" />
<preference name="pods_use_frameworks" value="true" />
<pod name="Firebase/Core" version="5.20.0" />
<pod name="Firebase/Auth" version="5.20.0" />
<pod name="Firebase/Messaging" version="5.20.0" />
<pod name="Firebase/Performance" version="5.20.0" />
<pod name="Firebase/RemoteConfig" version="5.20.0" />
<pod name="Firebase/DynamicLinks" version="5.20.0" />
<pod name="Fabric" version="1.9.0" />
<pod name="Crashlytics" version="3.12.0" />
注意:您的威力还需要安装GoogleSignIn吊舱。
https://stackoverflow.com/questions/56132435
复制相似问题