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

LDSwiftSourceEvent link issue #257

Closed
kinglezhuang opened this issue Oct 12, 2021 · 2 comments
Closed

LDSwiftSourceEvent link issue #257

kinglezhuang opened this issue Oct 12, 2021 · 2 comments

Comments

@kinglezhuang
Copy link

I open workspace and build ios framework. Then embedded the LanuchDarkly.framework & LDSwiftEventSource.framework into our project. It show below error:
Class _TtC18LDSwiftEventSource11EventParser is implemented in both /Users/rcadmin/jenkins-slave/workspace/CommonCI-mThor-Core-Auto-Generate/RingCentral-Core/build/Build/Products/Debug-iphonesimulator/core-test.xctest/Frameworks/LDSwiftEventSource.framework/LDSwiftEventSource (0x170ba2498) and /Users/rcadmin/jenkins-slave/workspace/CommonCI-mThor-Core-Auto-Generate/RingCentral-Core/build/Build/Products/Debug-iphonesimulator/core-test.xctest/Frameworks/LaunchDarkly.framework/LaunchDarkly (0x1708fa870). One of the two will be used. Which one is undefined.

I found EventParser symbol exist in LanuchDarkly.framework, not reasonable because it just belongs to LDSwiftEventSource.framework.

I open project & found the dependency is framework, but link by using static in project build phase tab.
Incorrect, right?

@louis-launchdarkly
Copy link
Contributor

Hello @kinglezhuang, Apologies for the delay and thank you for waiting. From your error, it seems that the linker is complaining there are multiple implementations of LDSwiftEventSource. Because the iOS SDK already listed LDSwiftEventSource as a [dependency] (https://github.com/launchdarkly/ios-client-sdk/blob/v5/Package.swift#L22), have you tried to only embed LaunchDarkly.framework?

https://github.com/launchdarkly/hello-ios is a helpful reference on how to use the iOS SDK.

If the suggestions above do not resolve your issue, please contact our support via https://support.launchdarkly.com/hc/en-us

@louis-launchdarkly
Copy link
Contributor

No more comments from the requester.

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

No branches or pull requests

2 participants