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

Fix runtime dyld Symbol Not Found crash when also linking contentful-persistence #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dodgecm
Copy link

@dodgecm dodgecm commented May 27, 2021

Use Swift 5.4 and Xcode 12.5. This bug does not occur on earlier versions of Swift or XCode as far as I know.

Steps:

  1. Use Carthage 0.38.0 to build contentful.swift and contentful-persistence.swift .xcframeworks
  2. Link both frameworks to fresh project
  3. Project crashes at runtime: dyld Symbol Not Found crash

When building contentful-persistence locally, I found a suspicious warning coming from contentful.swfit:

Using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead

Fixing this warning and making contentful-persistence reference the updated contentful.swift library fixes the issue. I don't know why all this is happening but the fix definitely works.

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

Successfully merging this pull request may close these issues.

None yet

1 participant