Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with cocoapods produces warning about duplicate libraries - "-lc++" #8509

Open
LowAmmo opened this issue Mar 8, 2024 · 1 comment

Comments

@LowAmmo
Copy link

LowAmmo commented Mar 8, 2024

How frequently does the bug occur?

Always

Description

When consuming Realm via Cocoapods with Xcode 15+, seeing a build warning about:

 Ignoring duplicate libraries: '-lc++'

I believe this can be resolved just by removing c++ as a dependent library in the podspec, but it might require setting a higher minimum platform version and/or cocoapod version.

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

Create a new project. Include Realm via a Podfile -

 pod 'RealmSwift', '~> 10.46.0'

Version

10.46.0

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 17+, Xcode 15+

Build environment

Xcode version: 15.3
Dependency manager and version: Cocoapods 1.15.2

Copy link

sync-by-unito bot commented Mar 8, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants