我正在尝试将Appodeal导入到我的React Native iOS应用中,我遵循了这个Appodeal XCode Tutorial

因此,我在链接时遇到了一个错误,并找到了解决该问题的现有方法,但没有一种方法对我有帮助。

错误:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

因此,这是我的“与库链接二进制文件”列表:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

这是我的编译源和目标会员资格:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

禁用位码:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

其他链接器标志:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

架构:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

我项目根源中的依存关系:

ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal-LMLPHP

这就是我已更改的全部内容,所以关于我哪里出错了的任何想法?

最佳答案

我应该添加CoreBluetooth.Framework(他们可能在本教程中或其他任何地方都错过了它),现在很好。

在这里找到我的答案:groups.google.com/forum /#!category-topic / google-admob-ads-sdk /…(感谢Jaap!)

我还通过(https://forums.developer.apple.com/thread/4572)的SleepyViking在此指令中添加了libs:


转到构建阶段>与库链接二进制文件> +>添加其他
在文件选择窗口中,执行“ CMD” + Shift + G(转到文件夹),然后键入/ usr / lib /
从/ user / lib,您可以添加:libz.dylib等。
编译并享受乐趣

关于ios - 架构x86_64的 undefined symbol :“_ CBCentralManagerOptionShowPowerAlertKey”,在React Native中导入Appodeal,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37505543/

10-11 20:57