I have few old objective c projects which has to be converted to a framework for usage across existing and new xcodeproj. Will SPM be a good choice ? Please let me know if SPM work for a pure objective c project ?
The Swift Package Manager allows developers to build reusable components made up of Swift, Objective-C, Objective-C++, C, or C++ code that other developers can use in their own projects.
swift in its directory produces an executable. Running the swift build command starts the Swift build system to produce the Dealer executable, which can be run from the . build/debug directory. The complete code for the Dealer package can be found at https://github.com/apple/example-package-dealer.
To create a new Swift package, open Xcode and select File > New > Swift Package. Choose a name and select a file location. Select “Create Git repository on my Mac” to put your package under version control. On completion, the Swift package opens in Xcode and looks similar to a standard Xcode project.
Apple have now answered this question.
From the documentation "Swift packages are reusable components of Swift, Objective-C, Objective-C++, C, or C++ code that developers can use in their projects"
So yes, and I intend to do this almost immediately, as the maintenance of frameworks has been a major pain over the years, with all the run scripts and the like.
Here is the link for the source document : https://developer.apple.com/documentation/swift_packages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With