- Add Following lane to your
fastlanefile.
lane :buildApp do
xcbuild({
workspace: "MYPROJECT.xcworkspace",
scheme: "MYTARGET",
sdk: "iphonesimulator",
destination: "platform=iOS Simulator,name=iPhone 8",
xcargs: "ONLY_ACTIVE_ARCH=NO"
})
end
- Replace
MYPROJECTwith name of the project. - Replace
MYTARGETwith name of the Target. - Run command
bundle exec fastlane ios buildApp - Add this to any CI-CD system like Semaphore, Github Actions.