-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
Platform: iOSiOS applications.iOS applications.Resolution: AnsweredWhen the issue is resolved with a simple answerWhen the issue is resolved with a simple answer
Description
Description
Adding the https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-transfer.git package to a react native project using the new spm_dependency method available in podpsecs causes Duplicate symbols issue when building, even using USE_FRAMEWORKS=dynamic
The error is 18460 duplicate symbols.
The PR that added support for this (#44627) mentions the duplicate symbols can be fixed by using USE_FRAMEWORKS=dynamic during pod install, but this does not seem to address the issue.
Steps to reproduce
The reproduction repo is a freshly initialized react native project on 0.76.1, with the most minimal local module added just to add the podspec loading.
- Clone
https://github.com/TimoGlastra/react-native-swift-package-manager-issue npm installcd ios && USE_FRAMEWORKS=dynamic pod install- Open in xcode and build.
React Native Version
0.76.1
Affected Platforms
Build - MacOS
Output of npx react-native info
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 89.81 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.11.1
path: ~/.nvm/versions/node/v20.11.1/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v20.11.1/bin/yarn
npm:
version: 10.2.4
path: ~/.nvm/versions/node/v20.11.1/bin/npm
Watchman:
version: 2024.09.30.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.15989.150.2411.11948838
Xcode:
version: 16.0/16A242
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.2
path: /usr/bin/javac
Ruby:
version: 3.3.5
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.0
wanted: 15.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.1
wanted: 0.76.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
18460 duplicate symbols
Reproducer
https://github.com/TimoGlastra/react-native-swift-package-manager-issue
Screenshots and Videos

Metadata
Metadata
Assignees
Labels
Platform: iOSiOS applications.iOS applications.Resolution: AnsweredWhen the issue is resolved with a simple answerWhen the issue is resolved with a simple answer