question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting duplicates symbols after installing expo-notifications in a bare project (ios)

See original GitHub issue

Getting duplicates symbols after installing expo-notifications in a bare project

yarn add expo-notifications && cd ios && pod install

Deploying the app with xcode to a local device leads to duplicate symbols.

I already checked if there is some manual linking going on, but Libraries are clean. Linking is only against pods.

duplicate symbol '_OBJC_IVAR_$_EXRemoteNotificationPermissionRequester._reject' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_IVAR_$_EXRemoteNotificationPermissionRequester._userNotificationPermissionRequester' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_CLASS_$_EXRemoteNotificationPermissionRequester' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_METACLASS_$_EXRemoteNotificationPermissionRequester' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_IVAR_$_EXRemoteNotificationPermissionRequester._remoteNotificationsRegistrationIsPending' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_IVAR_$_EXRemoteNotificationPermissionRequester._resolve' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)
duplicate symbol '_OBJC_IVAR_$_EXRemoteNotificationPermissionRequester._methodQueue' in:
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXNotifications/libEXNotifications.a(EXRemoteNotificationPermissionRequester.o)
  /Users/AB/Library/Developer/Xcode/DerivedData/kinikana-gwnqyjnevydhebahxkjqtmrmushg/Build/Products/Debug-iphoneos/EXPermissions/libEXPermissions.a(EXRemoteNotificationPermissionRequester.o)

Targets:

  • IOS
  • Android (runs fine)

Versions:

"expo-notifications": "0.3.1",
"expo-permissions": "8.1.0",
"react-native-unimodules": "0.9.1",

I don’t know how, but it looks like libEXNotifications is colliding with libEXPermissions?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
sjchmielacommented, Jun 10, 2020

Hey all, sorry for introducing this bug. For those interested, it has been introduced in https://github.com/expo/expo/pull/8486 (you can read the discussion underneath merge event).

Good news is the fix has just landed on master and I also published it as expo-notifications@0.3.2, so go get the upgrade while it’s hot!

0reactions
Speedy1991commented, Jun 10, 2020

@sjchmiela thanks for the quick fix I can confirm: The linking error is gone

Read more comments on GitHub >

github_iconTop Results From Across the Web

Notifications - Expo Documentation
Schedule a notification repeating in some time interval (or a calendar date match on iOS),; Get and set application badge icon number,; Fetch...
Read more >
expo-notifications-bux-fix v0.12.0 - npm.io
Run npx pod-install after installing the npm package. In order to be able to receive push notifications on the device: open Xcode workspace...
Read more >
Expo SDK Setup - OneSignal Documentation
Instructions for adding the OneSignal React Native & Expo SDK to your app for iOS, Android, and derivatives like Amazon.
Read more >
218 duplicate symbols for architecture arm64 Firebase IOS ...
I have added Firebase SDK in XCode but when building it says Error: 218 duplicate symbols for architecture arm64.
Read more >
React Native Push Notifications Tutorial | Expo - YouTube
pushnotifications #reactnativeThis tutorial is all about sending dynamic and personalised push notifications to your one of or all of your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found