重复符号“_hasListeners”反应本机

发布于 2025-01-15 03:30:36 字数 844 浏览 0 评论 0原文

我目前正在开发一个需要 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

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

I'm currently working on a project that requires both BLE and iWatch integration but for some reason when I install libraries to do both, I get this error

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)

I'm using the libraries https://github.com/innoveit/react-native-ble-manager and https://github.com/agencyenterprise/react-native-health

I've tried updating these libraries to the newest versions, cleaning the build folder and deleting derived data without any success. Is there anything I can do except hope the devs fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Oo萌小芽oO 2025-01-22 03:30:36

找到 Pods - Development Pods - RNAappleHealthKit - RCTAppleHealthKit.m

并将:更改

bool hasListeners;

为:

static bool hasListeners;

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

Find Pods - Development Pods - RNAppleHealthKit - RCTAppleHealthKit.m

And change:

bool hasListeners;

to:

static bool hasListeners;

And then build the project, will fix it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文