I have spent two hours trying to get this working with Swift Package Manager and I have no idea why it is so complicated? Do I have to specify different branches for each Package? Do I use main? Am I using a specific commit?
Create new Xcode project
File -> Add package dependency...
Add: https://github.com/ml-explore/mlx-swift-lm/ Dependency Rule: Main, or 8c9.. as it says in the readme
Attempt to add swift-hf-api-mlx
Could not be resolved
Failed to resolve dependencies Dependencies could not be resolved because root depends on 'swift-hf-api-mlx' 0.1.1..<1.0.0. 'swift-hf-api-mlx' >= 0.1.1 cannot be used because no versions of 'swift-hf-api-mlx' match the requirement 0.1.2..<1.0.0 and package 'swift-hf-api-mlx' is required using a stable-version but 'swift-hf-api-mlx' depends on an unstable-version package 'mlx-swift-lm'. unexpectedly did not find the new dependency in the package graph: sourceControl(identity: swift-hf-api-mlx, location: SwiftPM.SPMPackageDependency.SourceControlLocation.remote(SwiftPM.SPMSourceControlURL(sourceControlURL: https://github.com/DePasqualeOrg/swift-hf-api-mlx)), requirement: 0.1.1 – Next Major)
I have spent two hours trying to get this working with Swift Package Manager and I have no idea why it is so complicated? Do I have to specify different branches for each Package? Do I use main? Am I using a specific commit?
Create new Xcode project
File -> Add package dependency...
Add: https://github.com/ml-explore/mlx-swift-lm/ Dependency Rule: Main, or 8c9.. as it says in the readme
Attempt to add swift-hf-api-mlx
Could not be resolved
Failed to resolve dependencies Dependencies could not be resolved because root depends on 'swift-hf-api-mlx' 0.1.1..<1.0.0. 'swift-hf-api-mlx' >= 0.1.1 cannot be used because no versions of 'swift-hf-api-mlx' match the requirement 0.1.2..<1.0.0 and package 'swift-hf-api-mlx' is required using a stable-version but 'swift-hf-api-mlx' depends on an unstable-version package 'mlx-swift-lm'. unexpectedly did not find the new dependency in the package graph: sourceControl(identity: swift-hf-api-mlx, location: SwiftPM.SPMPackageDependency.SourceControlLocation.remote(SwiftPM.SPMSourceControlURL(sourceControlURL: https://github.com/DePasqualeOrg/swift-hf-api-mlx)), requirement: 0.1.1 – Next Major)