Open snackattas opened 2 years ago
@snackattas I also have tested with 14.1 but didn't face with such an issue. Generally Library not loaded: @rpath/XXX.framework/XXX
issue means that framework wasn't copied to result app bundle
Can you confirm that Build phases
has "Copy framework" step and looks like this?
I checked, it matches yours. Not sure what the issue is then.
I deleted my CGMLEKit directory and cloned a new one, to try again, with these steps, without editing ANY of the code in the CGMBLEKit like before, except for Scripts/carthage.sh
My steps:
com.snackattas.ResetTransmitter
Scripts/carthage.sh
file to this (ably/ably-cocoa@7506465)./Scripts/carthage.sh update --platform iOS
, seems successful./Scripts/carthage.sh build --platform iOS
, seems successfulResetTransmitter > <my iphone>
When doing that I get the SwiftCompile error.
Then, instead of doing the
So, what exactly am I supposed to change to make everything 14.1 compatible? Were these places actually correct? dev/CGMBLEKit.xcodeproj/project.pbxproj#L1750
Then, instead of editing the code like I did before, I changed this dropdown.
And then the app built, BUT, got the same Library not loaded error
So, what exactly am I supposed to change to make everything 14.1 compatible? Were these places actually correct? dev/CGMBLEKit.xcodeproj/project.pbxproj#L1750
Yep, but actually both (debug and release):
You can do this from Project settings, just select App target and search for "deployment target"
Thanks for the response! I'll do it from project settings then!
After you do that step, do you have to rerun the Script/carthage build
command, just curious
Also, just realizing now, I am running iOS 15.1
on my phone, not 14.1
I'm so sorry I totally got my own iOS confused 🤦 . So next experiment will be doing the steps with 15.1
set as target
"Deployment target" == Minimal supported iOS version
The issue in the comment https://github.com/LoopKit/CGMBLEKit/issues/165#issuecomment-1003636172 was about CGMLEKit's deployment target being higher than ResetTransmitter's deployment target
The general rule here is: deployment target of framework cannot be higher then deployment target of the app which uses those frameworks
Does CGMBLEKit work for iOS 14? I am a willing and able beta-tester if y'all want me to try it! I'm giving it a go on my own right now, and was able to build it by doing some things:
IPHONEOS_DEPLOYMENT_TARGET
to14.1
, without really knowing what I'm doing :) https://github.com/LoopKit/CGMBLEKit/blob/dev/CGMBLEKit.xcodeproj/project.pbxproj#L1750After it builds successfully, I now get this error when it runs on my iphone after clicking the play button:
When it builds and opens, its just a blank screen