我在我的反应原生应用程序中安装了推送通知,我想我在安装其中一个时搞砸了。当我尝试在模拟器中安装应用程序时,我遇到以下错误:
duplicate symbol _OBJC_IVAR_$_RCTPushNotificationManager._remoteNotificationCallbacks in:
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libRCTPushNotification.a(RCTPushNotificationManager.o)
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a(RCTPushNotificationManager.o)
duplicate symbol _OBJC_CLASS_$_RCTPushNotificationManager in:
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libRCTPushNotification.a(RCTPushNotificationManager.o)
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a(RCTPushNotificationManager.o)
duplicate symbol _OBJC_METACLASS_$_RCTPushNotificationManager in:
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/l
ibRCTPushNotification.a(RCTPushNotificationManager.o)
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a(RCTPushNotificationManager.o)
duplicate symbol _OBJC_IVAR_$_RCTPushNotificationManager._requestPermissionsResolveBlock in:
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libRCTPushNotification.a(RCTPushNotificationManager.o)
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a(RCTPushNotificationManager.o)
duplicate symbol _RCTRemoteNotificationReceived in:
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libRCTPushNotification.a(RCTPushNotificationManager.o)
/Users/waltermonecke/Code_Projects/reactNative/lisdo/ios/build/Build/Products/Debug-iphonesimulator/libTPSStripe.a(RCTPushNotificationManager.o)
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
libRCTPushNotification.a是我链接的库。
我删除了/ios
下的构建文件夹但它仍然失败了。我想我在某个地方宣布了这个库两次,但我没有看到xCode有什么问题。任何帮助表示赞赏!