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
Swift standard libraries embedding explicitly set to NO by CocoaPods #6064
Comments
Having a similar issue... except our app actually uses Swift 2.3 and it is still setting |
@grioja this is because of a target that has Swift that isn't managed by CocoaPods as well? |
However I'm facing the exact issue i'm using audiokit that is build with swift as ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES set to no the crash pops |
If you use any Swift pods, then you'll have to have that set to |
Unfortunately no. Using Swift in your app or using any framework written in Swift currently means the Swift standard libraries need to be copied into your app bundle (just like @benasher44 said). Your only option is to not use frameworks written in Swift - that is until Apple makes the Swift ABI stable and ships iOS with the Swift standard libraries. |
@DreamBegin What is the increase in size? |
the size of the ipa that was 32mb (31 mb was consumed by the soundfonts that i've used in the app that is no issue) and now 60mb. @srameshr |
Did you find a solution on the size app increase? |
@deliverymanager It does not matter. Because, once you upload it to the app store, the size of ipa that is served is decreased significantly. |
I am not sure about that. @srameshr Thank you very mush for your response! |
@deliverymanager |
Is there any way to silent it?
We just don't support P.S. |
Report
What did you do?
Include ObjC only pod libraries in your project, project uses a custom Swift framework not managed by CocoaPods.
What did you expect to happen?
CocoaPods should not explicitly set the
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
toNO
inside the xcconfig files if it thinks no Swift runtime library is needed. Actually it should not set this option at all if it determines no Swift runtime is needed by the pods and thus leave it up to the project settings. Or there should at least be an option to tell CocoaPods that the Swift runtime libraries are needed even though it is not able to detect the requirement.What happened instead?
CocoaPods automatically sets the
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
toNO
inside the xcconfig files and shows a warningCocoaPods Environment
Stack
Podfile
The text was updated successfully, but these errors were encountered: