Open mikeger opened 1 year ago
SDWebImage uses cSettings
on Package.swift. Scipio can't treat this declaration correctly.
I'm going to fix this.
https://github.com/SDWebImage/SDWebImage/blob/master/Package.swift#L36-L37
I'm unable to build Firebase either. There is a third-party Package manifest that includes pre-built xcframework
files though: https://github.com/akaffenberger/firebase-ios-sdk-xcframeworks
There is an in-depth discussion about this repo here: https://github.com/firebase/firebase-ios-sdk/issues/6564
I've found another package that wouldn't build called SVGKit. This is an objective-c framework, which I suspect some parts of Firebase are too. Perhaps this could be a problem?
I had a look into this with another Objective-C library we use, that is a little simpler than Firebase. It's called SnowplowTracker.
Trying to build this with scipio produces build errors:
However I was able to build with swift-create-xcframework
:
$ swift create-xcframework --platform ios SnowplowTracker
...
xcframework successfully written out to: /path/to/snowplow-objc-tracker/SnowplowTracker.xcframework
Perhaps it might be worth comparing the differences between the generated xcodebuild
commands of scipio
and swift-create-xcframework
?
Hey 👋
I've tried to use Scipio for my project, but I've found a couple of issues. The following frameworks cannot be compiled:
SDWebImage
Compilation error
GoogleTagManager
Compilation error
Firebase
Seems that one of the sub-dependencies are not automatically linked.
Example Package.swift