Closed ghost closed 3 years ago
Yes, this seems like an issue with Xcode. Make sure in your project settings, General -> Frameworks, Libraries and Embedded Content, make sure that LNPopupController is maked as "Embed & Sign". I have a feeling it's "Do Not Embed" for you.
Yep, you're right! Thank you!
So for my app I chose:
Dynamic:
I changed this to Embed & Sign:
It seems that Static
worked without changing anything Embed/Sign, but I believe you said to use Dynamic
for app in an older issue.
Thanks for helping!
It’s a personal preference with slightly different performance characteristics.
but I do believe this is an Xcode bug. The common case is that you want a dylib/framework to be embedded and signed.
@LeoNatan Got it ok, I was referring to this issue btw: https://github.com/LeoNatan/LNPopupController/issues/422
Is using Dynamic
a best practice for your library in a regular app (not a framework)?
I prefer dynamic frameworks (dylibs) for many reasons. It’s one of these eternal battles like spaces or tabs 😆. You can Google for “static vs dynamic linking what is better” and see the arguments for that or that. But both will work just as fine for you, just need to make sure Xcode is set up correctly. 👍
ooooh I see, I thought it was a requirement to use Dynamic
lol Thank you for clarifying that! As always, great library and love the work being put in to maintain it.
Thank you for the kind words! Happy coding! Also check out LNPopupUI if you dabble in SwiftUI.
Describe the Bug I can't run my app on an actual phone after updating to Xcode 13. Here is the crash log in the console:
Any thoughts on this? Is it because of
dynamic
vsstatic
library? I'm usingdynamic
To Reproduce Steps to reproduce the behavior:
dynamic
option only. The version I have is2.12.6
Expected Behavior n/a
Screenshots n/a
Additional Context n/a