giginet / Scipio

A new build tool to generate XCFramework

Home Page:https://giginet.github.io/Scipio/documentation/scipio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How about adding option to enable `-allow-internal-distribution` for making library-evolution not supported libraries?

muukii opened this issue · comments

I just thought something from seeing this issue (#32)
Some frameworks might be failed to build as XCFramework with enabling library-evolution.

xcodebuild command supports to make XCFramework without library-evolution, means not having .swiftinterface.
with this, the build process will be the same as to build process using packages normal way.

If using Scipio is for build cache, it works with not enabling library evolution in popular cases.

So I propose Scipo supports using a option (--allow-internal-distribution)
just like Realm doing https://github.com/realm/realm-swift/blob/master/build.sh#L166

xcodebuild -create-xcframework -allow-internal-distribution -output "$xcframework_path" \
        -framework "$os_path" -framework "$simulator_path"

this approach comes from my previous outdated work.
I was stuck in building prebuilt binary using cocoapods. some libraries failed to build with library-evolution.
Also I've seen .swiftinterface was wrong before.

And I appreciate your great work.
I hope this library helps saving build time.

I'm working on this here. #49 😄

wow, glad to hear that! Thank you!