MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k stars 104 forks source link

Issue installing with mint #324

Closed dkk closed 1 year ago

dkk commented 1 year ago

I am unable to install SwiftyMocky on my system using mint. I have also tried installing 4.1.0 and 4.0.4 with no luck.

My System:

Model Name: MacBook Pro (16-Inch, 2021)
Model Identifier: MacBookPro18,1
Chip: Apple M1 Pro
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 32 GB
System Firmware Version: 7459.141.1
OS: macOS Monterey (12.6)
Xcode: 14.0

Mint's output:

╰─ mint install MakeAWishFoundation/SwiftyMocky@4.2.0 --verbose
🌱 Cloning SwiftyMocky 4.2.0
Cloning into 'github.com_MakeAWishFoundation_SwiftyMocky'...
remote: Enumerating objects: 399, done.
remote: Counting objects: 100% (399/399), done.
remote: Compressing objects: 100% (353/353), done.
remote: Total 399 (delta 99), reused 212 (delta 30), pack-reused 0
Receiving objects: 100% (399/399), 13.41 MiB | 6.20 MiB/s, done.
Resolving deltas: 100% (99/99), done.
Note: switching to '1e81c0c566c26d2d4e4cc2d799afad7d3ef931ab'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

🌱 Resolving package
error: 'github.com_makeawishfoundation_swiftymocky': Invalid manifest
/private/var/folders/kf/qp0y69697clfgygh_gckx9f40000gq/T/mint/github.com_MakeAWishFoundation_SwiftyMocky/Package.swift:4:8: error: no such module 'PackageDescription'
import PackageDescription
       ^
🌱 Encountered error during "swift package resolve"
🌱  Failed to resolve SwiftyMocky 4.2.0 with SPM
dkk commented 1 year ago

It seems that it was a general problem with my Xcode Command Line Tools setup. Running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer solved the issue.