So, I've been following along the video on Distribute binary frameworks as Swift packages, but now I'm sort of stuck.
I have my Swift Package that works fine when used as a source package, which I want to ship as a binary now.
The video says, I'm supposed to add a target:
but, the xcframework is what I am trying to build, don't have an xcframework yet?
With the above, if I run:
I get the error
I have my Swift Package that works fine when used as a source package, which I want to ship as a binary now.
The video says, I'm supposed to add a target:
Code Block swift import PackageDescription let package = Package( name: "Test", defaultLocalization: "de", platforms: [ .iOS(.v13) ], products: [ .library( name: "Test", targets: ["Test"] ), ], dependencies: [ ], targets: [ // .target(name: "Test") .binaryTarget( name: "Test", url: "https://static.looc.io/Test/Test-1.0.0.xcframework.zip", checksum: "9848327892347324789432478923478" ) ] )
but, the xcframework is what I am trying to build, don't have an xcframework yet?
With the above, if I run:
Code Block bash [konrad@iMac-2 Source]$ xcodebuild archive -workspace Test -scheme Test \ -archivePath "tmp/iOS" \ -destination "generic/platform=iOS" \ SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
I get the error
Code Block bash xcodebuild: error: Could not resolve package dependencies: artifact of binary target 'Test' failed download: invalid status code 403