I want to assemble/compile a workspace with cocoapods on it but without:
- Archiving.
- Need to setup credentials or pem files.
Something like:
xcodebuild assemble
I want to know if the code compiles but not generate an archive or a deployed artifact.
I tried fastlane/gym but it tries to create an archive.
Using xcodebuild
You can compile a project with the following command:
Because you are using cocoapods, you should compile using the workspace, instead of the project, like this:
If the swift version is not set in the cocoapods target there is a workaround by adding the following to your Podfile:
Using fastlane
Another way is using
build_app
from fastlane, like:I prefer this way, since it makes it simpler and uses xcpretty that will print the output nicer than
xcodebuild
.