ios - 体系结构 x86_64 : "_CBCentralManagerOptionShowPowerAlertKey", 的 undefined symbol 在 React Native 中导入 Appodeal

标签 ios xcode linker react-native xcode-project

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

所以我遇到了链接错误,并找到了一些现有的方法来解决它,但没有一个对我有帮助。

错误:

enter image description here

所以这是我的“将二进制文件与库链接”列表:

enter image description here

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

enter image description here

禁用位码:

enter image description here

其他链接器标志:

enter image description here

架构:

enter image description here

我项目根目录中的 Appodeal 依赖项:

enter image description here

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

最佳答案

我应该添加 CoreBluetooth.Framework (他们可能在教程或其他内容中错过了它),现在它很好。

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

而且我还按照 SleepyViking 的说明添加了库(https://forums.developer.apple.com/thread/4572):

  1. 转至构建阶段 > 将二进制文件与库链接 > + > 添加其他

  2. 进入文件选择窗口后,执行“CMD”+Shift+G(转到文件夹)并输入/usr/lib/

  3. 从/user/lib 您可以添加:libz.dylib 等...

  4. 编译并享受乐趣

关于ios - 体系结构 x86_64 : "_CBCentralManagerOptionShowPowerAlertKey", 的 undefined symbol 在 React Native 中导入 Appodeal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37505543/

相关文章:

ios - 为什么 UISwitch 使用字母 "I"和 "0"来开/关?

ios - iOS 版 OpenGL ES 2.0 中的 glDepthRange 发生了什么变化?

ios - Swift:协议(protocol)方法作为目标 Action 中的 Action

c++ - 为什么用项目编译 gtest 而不是使用 lib

c++ - 更改预处理到文件后出现错误 1 ​​错误 LNK1104

iphone - 如何在 iOS 中从 Web 中获取数据?

ios - Google Maps iOS SDK 和 Storyboard

swift - 模拟不使用App模拟位置因为曾经拒绝通知

xcode - 如何识别 Swift 是否使用优化编译

c - 警告 : cannot find entry symbol Reset_Handler