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
dylib #23 could not be loaded #1949
Comments
👀 SDKONCALL-136 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Xcode 13.2 is required. Could you try with that and let us know if you encounter the same issue? |
Yes, it works there. What is the last version of RC that supports 10.15? |
RC 4.13 supports macOS 10.15. |
Ah - what is the last version of RC that supports Xcode 12.4 (the last version to run on 10.15)? The last version of 3.x? |
The last 3.x version should support it :) |
This is very odd since RC 4.11.0 works fine in Xcode 12.4 running on 10.15.17. The bug started in RC 4.12.1 |
How are you compiling the SDK? |
I'm not. I am downloading the RevenueCat.framework.zip and opening it up. I am using the dSYM and framework files from within the Carthage/Build/Mac folder and copying those two files into my project's source folders. This bug is happening when running my app that contains the RC framework. It all works fine with 4.11 |
Which SDK and deployment target are you compiling for when you get this failure? |
Everything works in Xcode 12.4, RC 4.11 running on 10.15.7 and deploying to 10.15. When I update to RC 4.12.1 or later, I get this error when running my app. There are no compile-time errors. |
We're going to need more information to be able to help you. |
Building for macOS with Xcode 12.4 on 10.15.7. SDK is 10.15, deployment target macOS 10.15. |
This is weird: $ xcrun swift-demangle _$sScMMa
_ ---> _ |
Also note that my app is entirely Cocoa with no Swift code. I am just embedding the framework and it all worked fine until I moved past RC 4.11. |
To be honest I don't understand how it was working before. We had to move to Xcode 13.2 because the SDK uses |
For reference (thanks @Keith), looks like this is pointing to $ otool -L ~/Downloads/Carthage/Build/Mac/RevenueCat
@rpath/RevenueCat.framework/Versions/A/RevenueCat (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AdServices.framework/Versions/A/AdServices (compatibility version 1.0.0, current version 1.0.0, weak)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1858.112.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2113.40.126)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1858.112.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit (compatibility version 1.0.0, current version 379.0.0)
/usr/lib/swift/libswiftAppKit.dylib (compatibility version 1.0.0, current version 109.0.0, weak)
/usr/lib/swift/libswiftCore.dylib (compatibility version 1.0.0, current version 5.6.0)
/usr/lib/swift/libswiftCoreData.dylib (compatibility version 1.0.0, current version 19.0.0, weak)
/usr/lib/swift/libswiftCoreFoundation.dylib (compatibility version 1.0.0, current version 14.0.0, weak)
/usr/lib/swift/libswiftCoreGraphics.dylib (compatibility version 1.0.0, current version 2.0.0, weak)
/usr/lib/swift/libswiftCoreImage.dylib (compatibility version 1.0.0, current version 2.0.0, weak)
/usr/lib/swift/libswiftDarwin.dylib (compatibility version 1.0.0, current version 0.0.0, weak)
/usr/lib/swift/libswiftDispatch.dylib (compatibility version 1.0.0, current version 11.0.0)
/usr/lib/swift/libswiftFoundation.dylib (compatibility version 1.0.0, current version 72.105.0)
/usr/lib/swift/libswiftIOKit.dylib (compatibility version 1.0.0, current version 1.0.0, weak)
/usr/lib/swift/libswiftMetal.dylib (compatibility version 1.0.0, current version 261.13.0, weak)
/usr/lib/swift/libswiftObjectiveC.dylib (compatibility version 1.0.0, current version 3.0.0)
/usr/lib/swift/libswiftQuartzCore.dylib (compatibility version 1.0.0, current version 3.0.0, weak)
/usr/lib/swift/libswiftXPC.dylib (compatibility version 1.0.0, current version 1.1.0, weak)
/usr/lib/swift/libswiftos.dylib (compatibility version 1.0.0, current version 1023.0.0, weak)
@rpath/libswift_Concurrency.dylib (compatibility version 1.0.0, current version 5.6.0, weak) |
If it is the concurrency dylib it could be because that's not being copied into the bundle, or the rpaths on the binary don't point to its correct location, so that one would likely make more sense to be the issue |
This project is in the late stages and after release will move to Monterey and a newer Xcode. Just pointing out that something changed between RC 4.11 and RC 4.12.1 |
A lot of things changed between those 2 versions 😇 |
I'll stick with 4.11 and move forward with the switch to Monterey and Xcode 13/14. |
That makes sense 👍🏻 |
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports. |
RCConfigurationBuilder* configuration = [RCConfiguration builderWithAPIKey:kRevenueCatAPIKey];
configuration = [configuration withAppUserID:myAppUserID];
[RCPurchases configureWithConfiguration:[configuration build]];
I am seeing:
dyld: lazy symbol binding failed: can't resolve symbol _$sScMMa in /...RevenueCat.framework/Versions/A/RevenueCat because dependent dylib #23 could not be loaded
dyld: can't resolve symbol _$sScMMa in /.../RevenueCat.framework/Versions/A/RevenueCat because dependent dylib #23 could not be loaded
(lldb)
I am using Xcode 12.4 on Catalina, writing in Cocoa on macOS and RevenueCat 4.13
The text was updated successfully, but these errors were encountered: