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
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With