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

iOS Incompatible library version crash - DYLIB_COMPATIBILITY_VERSION vs DYLIB_CURRENT_VERSION #946

Closed
RacingWang opened this issue Dec 14, 2019 · 1 comment
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@RacingWang
Copy link

RacingWang commented Dec 14, 2019

Which version of the Ably SDK are you using?

E.g. 1.1.13

On which platform does the issue happen?

E.g. iOS13

Are you using Cocoapods?

1.8.4

Which version of Xcode are you using?

11.3

What did you do?

My SDK can be installed by Cocoapods, and I set Ably as the dependency:

spec.dependency "Ably", "~> 1.1"

However, when my app runs after pod install, app would crash when launching:

Incompatible library version: 
M17SDK requires version 1.1.13 or later, but Ably provides version 1.0.0

So I downloaded Ably.framework on Github release and run this command to check:

otool -L Ably.framework/Ably 

I saw the dlyb version is incompatible.

@rpath/Ably.framework/Ably (compatibility version 1.1.13, current version 1.0.0)

What did you expect to happen?

The current version should be the same with compatibility version (1.1.13).

What happened instead?

1.0.0

@QuintinWillison QuintinWillison self-assigned this Dec 16, 2019
@QuintinWillison QuintinWillison added the bug Something isn't working. It's clear that this does need to be fixed. label Dec 16, 2019
QuintinWillison pushed a commit that referenced this issue Dec 16, 2019
We were incorrectly setting the 'compatibility version' to the current project version for the iOS platform only.
QuintinWillison pushed a commit that referenced this issue Dec 16, 2019
We were incorrectly setting the 'compatibility version' to the current project version for the iOS platform only.
@QuintinWillison QuintinWillison changed the title Incompatible version iOS Incompatible library version crash - DYLIB_COMPATIBILITY_VERSION vs DYLIB_CURRENT_VERSION Dec 16, 2019
@QuintinWillison
Copy link
Contributor

I'm going to close this issue as I believe it's resolved in 1.1.14. Feel free to re-open this issue, @RacingWang, if this is still causing you problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

No branches or pull requests

2 participants