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

generate command fails on xcode cloud #344

Closed kezzico closed 1 year ago

kezzico commented 1 year ago

running command swiftymocky generate in an xcode cloud script.

output from Pods/SwiftyMocky/bin/swiftymocky generate --disableCache --verbose

Generating code.
Rendering template /Volumes/workspace/repository/foo/.mocky191B47E2-B5B2-401D-9D0D-B432EEB7B138/.template.swifttemplate
/usr/bin/env "xcrun" "--sdk" "macosy" "swift" "build" "-Xswiftc" "-Onone" "_Xswiftc"
"-suppress-warnings"
--disable-sandbox"
error: env: xcrun: No such file or directory

root of the problem: xcrun is not [in the path] on xcode cloud runners

kezzico commented 1 year ago

problem was,

I named a variable in my ci_script $path 😅