重复符号“_hasListeners”原生反应

问题描述 投票:0回答:1

我目前正在开发一个需要 BLE 和 iWatch 集成的项目,但由于某种原因,当我安装库来同时集成这两个功能时,我收到此错误

duplicate symbol '_hasListeners' in:

 /Users/wilcox/Library/Developer/Xcode/DerivedData/project-id/Build/Products/Debug-iphonesimulator/RNAppleHealthKit/libRNAppleHealthKit.a(RCTAppleHealthKit.o) /Users/wilcox/Library/Developer/Xcode/DerivedData/project-id/Build/Products/Debug-iphonesimulator/react-native-ble-manager/libreact-native-ble-manager.a(BleManager.o)

我正在使用库https://github.com/innoveit/react-native-ble-managerhttps://github.com/agencyenterprise/react-native-health

我尝试将这些库更新到最新版本,清理构建文件夹并删除派生数据,但没有成功。除了希望开发人员修复它之外我还能做什么吗?

谢谢

node.js react-native bluetooth-lowenergy apple-watch
1个回答
1
投票

寻找

Pods - Development Pods - RNAppleHealthKit - RCTAppleHealthKit.m

并改变:

bool hasListeners;

至:

static bool hasListeners;

然后构建项目,将修复它。

© www.soinside.com 2019 - 2024. All rights reserved.