Closed dkk closed 1 year ago
May be related to https://github.com/MakeAWishFoundation/SwiftyMocky/issues/311
May be related to https://github.com/MakeAWishFoundation/SwiftyMocky/issues/309
Note that pod update currently does not download 4.2.0 since there is no updated spec. However, note that using:
pod 'SwiftyMocky', '4.1.0'
pod 'Sourcery', '1.6.0'
has the same outcome
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.
Btw. I changed my Podfile to:
pod 'SwiftyMocky', :git => 'https://github.com/MakeAWishFoundation/SwiftyMocky.git', :tag => '4.2.0'
pod 'Sourcery', '1.8.0'
Am having same problem, forced pod to update to 4.1.0 and made the sudo xcode-select -s /Applications/Xcode.app/Contents/Developer call. still the same problem
❌ Error: ShellOut encountered an error Status code: 3
Did the last thing you mentioned
pod 'SwiftyMocky', :git => 'https://github.com/MakeAWishFoundation/SwiftyMocky.git', :tag => '4.2.0'
pod 'Sourcery', '1.8.0'
Now get ./Pods/SwiftyMocky/bin/swiftymocky: Bad CPU type in executable, mmm
Maybe try to completely clean and rebuild your Pods project:
pod deintegrate
rm Podfile.lock
pod install
Interesting, 4.1.0 works for me on intel without any additional setup. Tested on both Xcode 14 GM (via xcodes) and Xcode 13.4.1 on the default location
generate throws an error.
Notes:
setup
was already executed and executing it again shows the⚠️ Mockfile™ already exists.
warning.My System:
Output: