Open AGulev opened 1 year ago
This is an Xcode build setting right? Do you know what that means in terms of actual impact on the compile or link step?
@britzl I think so. I tried to build plugin in xcode to check, but I failed (I'm writing it and understand that it's easier to build empty project with and without this checkbox and compere). As I understand, this flag includes swift libs as dynamic libs into build: https://stackoverflow.com/questions/26024100/dyld-library-not-loaded-rpath-libswiftcore-dylib
I'm not sure if it's something specified in a pod file somewhere or developer should decide himself.
One more useful link https://stackoverflow.com/questions/63859267/please-explain-the-purpose-of-always-embed-swift-standard-libraries
Note that the libraries are stripped out only if you are building against the 12.2 SDK and going onto a machine with 12.2 (or later). The libraries are still needed to run on a 12.1 or earlier machine.
@britzl here I found how it may be specified in pods file (this looks like a workaround, but maybe it will be useful): https://www.devsbedevin.net/cocoapods-always-embed-swift-standard-libraries/
Sure, but that sets a config value for Xcode. We need to figure out how to do the same thing without Xcode. And also how an extension should specify that it is needed (probably in the ext.manifest).
@britzl it seems like it depends on target ios version + using or not using swift code in framework
https://developer.apple.com/documentation/xcode-release-notes/swift-5-release-notes-for-xcode-10_2#New-Features
@AGulev @britzl Swift binaries should be copied and signed if you want to deploy at iOS less than 12.2. Inside my extensions I added swift libraries manually. And add custom 'rpath' option to linker's flags via ext.manifest
. But when application was uploaded to AppStore seems like swift libraries didn't strip from the bundle for newer ios version.
I agree with @ekharkunov . It seems liek we need to include it automatically if MIN ios version less than 12.2 @britzl should we move it into https://github.com/defold/extender repository?
The issue moved from https://github.com/defold/extension-ironsource
it seems like cocoapods should take into account
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES