Create XCFramework and install XCFramework.
Clone or download this repo.
$ gem build cocoapods-xcframework.gemspec
$ gem install cocoapods-xcframework-0.0.1.gem
make sure pod install
first.
$ pod xcframework POD_NAME
We have a Podfile
.
target 'Test' do
use_frameworks!
pod 'Kingfisher'
end
Pod will install sources by default. For use XCFramework:
- Create
cocoapods-xcframework.json
file in the same directory withPodfile
.
{
"Kingfisher": "https://github.com/onevcat/Kingfisher/releases/download/5.14.0/Kingfisher-5.14.0.zip"
}
- just
pod install
!
vendored_frameworks is **/#{spec.root.name}.xcframework
.
zip is a xcframework will not work.