# Can Circle CI run UI Tests with Xcode 7?

**URL:** <https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916>\
**Category:** Mobile\
**Tags:** ios\
**Created:** [December 3, 2015, 12:20pm UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916 "2015-12-03T12:20:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylejm](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kylejm/32/579_2.png) [@kylejm](https://discuss.circleci.com/u/kylejm)\
**Post date:** [December 3, 2015, 12:20pm UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/1 "2015-12-03T12:20:30Z")

</div>

I’ve looked through the docs, but can’t see anything. Hopefully I’m just being blind 😛, because it would be rad to have.

Here are some UI Test resources for anyone wondering what they are (they replace UIAutomation tests):

> **[UI Testing in Xcode 7](http://masilotti.com/ui-testing-xcode-7/)**
>
> How to navigate around an undocumented but powerful framework in iOS 9.

  

> **[UI Testing in Xcode - WWDC 2015 - Videos - Apple Developer](https://developer.apple.com/videos/play/wwdc2015/406/)**
>
> Xcode 7 introduces new UI testing features fully integrated into the IDE. Learn about the new APIs and how UI testing fits in with...

---

<div class="post-metadata">

**Author:** ![levlaz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/levlaz/32/36978_2.png) [@levlaz](https://discuss.circleci.com/u/levlaz)\
**Post date:** [December 3, 2015, 12:42pm UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/2 "2015-12-03T12:42:48Z")

</div>

You should be able to! Our build environment is an OS X VM with Xcode installed so any tools you use on your mac you should be able to use on CircleCI. Have you tried anything yet?

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [December 3, 2015, 5:44pm UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/3 "2015-12-03T17:44:53Z")

</div>

This post might help get you started with the code to use the build image

> [@New iOS build image: Xcode 7.1.1, fastlane, and more](https://discuss.circleci.com/t/new-ios-build-image-xcode-7-1-1-fastlane-and-more/611):
>
> Xcode 7.1.1 is now available for all iOS builds. You can select it by specifying the following in your circle.yml: machine: xcode: version: "7.1" Note: only specify “7.1” in circle.yml as we will continue to update the 7.1 install with any bugfix releases. In addition, Fastlane and Carthage are now installed by default. xctool and Cocoapods have been updated to the latest version. With this update we have removed support for Xcode 6.3.1, so any builds specifying 6.3.1 as the Xcode vers…

---

<div class="post-metadata">

**Author:** ![kylejm](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kylejm/32/579_2.png) [@kylejm](https://discuss.circleci.com/u/kylejm)\
**Post date:** [December 4, 2015, 11:05am UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/4 "2015-12-04T11:05:30Z")

</div>

That’s awesome! Thanks.

I feel like a massive n00b at the moment. I can’t get Circle CI to build and test our Xcode project.

I keep getting this:

```auto
set -o pipefail && xcodebuild CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6' -scheme "Loot" clean build test | tee $CIRCLE_ARTIFACTS/xcode_raw.log | xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml
bash: line 1: xcodebuild: command not found

bash: line 1: xcpretty: command not found set -o pipefail && xcodebuild CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6' -scheme "Loot" clean build test | tee $CIRCLE_ARTIFACTS/xcode_raw.log | xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml returned exit code 127

```

circle.yml looks like this:

```auto
machine:
  xcode:
    version: "7.1"
test:
  override:
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGN_IDENTITY=
        PROVISIONING_PROFILE=
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6'
        -scheme "Loot"
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml

```

I don’t understand how xcodebuild is missing? Isn’t it pre-installed?

---

<div class="post-metadata">

**Author:** ![kylejm](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kylejm/32/579_2.png) [@kylejm](https://discuss.circleci.com/u/kylejm)\
**Post date:** [December 4, 2015, 12:02pm UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/5 "2015-12-04T12:02:46Z")

</div>

So my team and I found out it was because we hadn’t set the Experimental Settings to turn `Build iOS project` ON.

We now get this warning:

```auto
Warning: Sorry! Your build didn't run because we are still adding capacity to the iOS beta and haven't enabled your organization yet. We know you're waiting and we'll get you building as soon as we can. If you have any questions, please free to contact us in support.

```

Hopefully our organisation can be “enabled” soon 🙏.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/can-circle-ci-run-ui-tests-with-xcode-7/916/6 "2018-06-18T11:33:21Z")

</div>

Closed on June 18, 2018, 11:33am UTC


