generate-xcodeproj will be deprecated, I think that would be awesome if SPM supports the archive process to compile Package.swift and generate a .xcframework product. This makes so much sense for me when we consider the distribution of binary libraries that is developed using the SPM structure (FYI that is so much simple and not confusing than using .xcproject).
Adding a new command to SPM to build the library
Package.swift using all directives that are detailed inside it and compiling a .xcframework. Something like:
swift package generate-binary.
This makes so much sense since SPM is supporting the distribution of binary libraries and it will be so much simpler for developers to keep doing their jobs. And of course, migrate their frameworks to SPM structure.
I'm actually exploring this feature in some projects and I really missed an SPM way to do that. The best way that I found was not even creating Xcode framework project, which was missing
dSyms symbols and
BCSymbols, but integrating the role release process with fastlane using the
Even though, I have to use the SPM
generate-xcodeproj command to have the Xcode Framework project and built it to finally get the xcframework from an SPM library.
I think that this is not a really bad experience, but it sure is something to bring to SPM compatibility.