Vincent Lauwen
Vincent Lauwen

Reputation: 141

Xcode error: Class <name> is implemented in both <path> and <path>. One of the two will be used. Which one is undefined?

I made a Unity project with Firebase SDK's (v 8.7.0) and I'm trying to build it for iOS with Xcode. I'm using Cocoapods (v 1.11.2) for the Firebase SDK's to work in Xcode.

I build my Unity project and installed Cocoapods which generated the xcworkspace file to open in Xcode. When I try to run the app on a connected iPhone, I got the following errors:

picture here.

Additional information:

I’m relatively new to implementing 3rd party applications, so any advice would be greatly appreciated.

Upvotes: 2

Views: 2868

Answers (1)

Paul Beusterien
Paul Beusterien

Reputation: 29582

In the Podfile, change use_frameworks! to use_frameworks! :linkage => :static

FirebaseAnalytics is a static framework and linking it into the app's dynamic framework causes it to be linked into the app twice.

Upvotes: 6

Related Questions