ios – Xcode Build: Tests must be run on a concrete device


I am trying to build in terminal and git-lab pipeline, using:

xcodebuild test -project Project.xcodeproj -scheme Scheme -destination ‘platform=iOS Simulator,name=iPhone 14,OS=13.0’ | xcpretty -s

But facing issues like:

xcodebuild: error: Failed to build project Project with scheme Project.: Cannot test target “Tests” on “Any iOS Device”: Tests must be run on a concrete device
Cannot test target “UITests” on “Any iOS Device”: Tests must be run on a concrete device.

I am using these:

Minimum Deployment: 13.0

  • xcodebuild clean -project Project.xcodeproj -scheme Scheme | xcpretty
  • xcodebuild test -project Project.xcodeproj -scheme Scheme -destination ‘platform=iOS Simulator,name=iPhone 14,OS=13.0’ | xcpretty -s

Thanks in advance!

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img