Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode execute “Test” from command line?

I would like to build my iOS project (cocoapods) from command line, so I will be able to build it on jenkins. First trigger all unit tests after every commit. On Xcode it is easy, Product -> Test. Can I somehow check what command is executed when I click on it?

I found this: developer.apple

like image 807
tostao Avatar asked Dec 10 '25 12:12

tostao


1 Answers

Maybe someone in the future will look for this, so this is how I solved it:

xcodebuild test -workspace 'MyWorkspace.xcworkspace' -scheme 'SchemaTests' -destination 'platform=iOS Simulator,name=iPhone 8,OS=12.1'
like image 199
tostao Avatar answered Dec 12 '25 06:12

tostao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!