Questions tagged [xcode7]

Xcode is an IDE by Apple for the development of iOS and OS X applications. Use this tag for version specific questions about Xcode 7.

is Apple's integrated development environment (IDE) for developing OS X, iOS, tvOS, and watchOS apps. Version 7 was presented at the WWDC on June 8th-12th, 2015. The new features of include an update to the programming language, making it faster than before. The latest version includes also support for .

Xcode 7 also adds support for deployment on iOS devices without an Apple Developer license.

This tag is only for IDE questions relating to Xcode version 7. Questions related to the programming languages should go to the appropriate tag, or . OS-related questions should go to and .

3952 questions
26
votes
3 answers

Replicate pull to refresh in XCTest UI testing

I am trying to replicate a pull to refresh on a UITableView using the new Xcode UI testing framework in Xcode 7 (beta 3) My current approach is dragging from the table to whatever element below the table I can find. This works when there is a fixed…
Kevin
  • 16,696
  • 7
  • 51
  • 68
26
votes
3 answers

How to create NSRadioButton Group in Xcode 7 OSX

I was following this tutorial on how to create radio button group. But it seems Radio Group is no longer available in the Xcode 7 library and I didn't find much information about it. How do I create something like this: Thanks very much.
Audrey Li
  • 980
  • 2
  • 11
  • 14
25
votes
2 answers

Turn off Xcode's unused variable warnings while typing

I'm sick to death of Xcode's prolific use of live "unused variable" warnings while I am typing. I keep thinking I have an error in my syntax, stop what I'm doing, check the warning, only to see it's an unused variable warning. Of course it's…
devios1
  • 36,899
  • 45
  • 162
  • 260
25
votes
2 answers

UI unit testing stuck on "Waiting for accessibility to load"

I'm getting into UI unit testing, and for a couple days now the UI unit testing refuses to start properly. I setup a simple test to click a button, and when I run it, it hangs starting the app before even starting the test. Note, it always hangs…
Miro
  • 5,307
  • 2
  • 39
  • 64
25
votes
6 answers

WkWebKit - javascript on loaded page finds window.webkit is undefined

I'm experimenting with WkWebKit talking back and forth between app and page. I can get javaScript to execute fine using WkWebView evaluateJavascript method, but when I try to execute window.webkit.messageHandlers.myHandler.postMessage('hello…
Brian B
  • 1,509
  • 3
  • 20
  • 29
25
votes
2 answers

The Selection is Not a Type that Can Be Renamed Xcode 7

Trying to rename a class by selecting the class name (ViewController) after @interface: @interface ViewController : UIViewController Right clicking, selecting Refactor -> Rename results in the following error alert window: This worked just fine in…
Stunner
  • 12,025
  • 12
  • 86
  • 145
25
votes
5 answers

Xcode 7 fails to open with "Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore" message

Xcode 7 fails to open on my Mac running OS X 10.10.5. A dialog box opens saying "Loading a plug-in failed". Starting Xcode from the command line outputs the following: 2015-09-20 23:39:36.616 Xcode[1511:58710] [MT] DVTPlugInLoading: Failed to…
hanspeide
  • 2,819
  • 4
  • 25
  • 33
25
votes
6 answers

How to tell which device I'm on in Xcode UI Testing?

While an Xcode UI Test is running, I want to know which device/environment is being used (e.g. iPad Air 2, iOS 9.0, Simulator). How can I get this information?
Senseful
  • 86,719
  • 67
  • 308
  • 465
25
votes
1 answer

Connecting external framework to UI unit testing target, iOS

So, i have already existing project at my hands and i’m trying to create some UI tests by using this new fancy UI Testing Bundle provided by apple. The problem is that test target doesn't have access to any external framework (and i need to do some…
BigSzu
  • 271
  • 2
  • 8
24
votes
4 answers

Pass Parameter with UITapGestureRecognizer

Is there any way i can pass parameters with UITapGestureRecognizer? I've seen this answered for objective-c but couldn't find an answer for swift test.userInteractionEnabled = true let tapRecognizer = UITapGestureRecognizer(target: self, action:…
Joe Cade
  • 357
  • 1
  • 2
  • 13
24
votes
6 answers

Could not find 'cocoapods' (>= 0) among N total gem(s) (Gem::LoadError)

When I am trying to pod install, getting following issue: Faizs-MBP:newj faizfareed$ pod install /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'cocoapods' (>= 0) among 50 total gem(s) (Gem::LoadError) Checked in…
Faiz Fareed
  • 1,498
  • 1
  • 14
  • 31
24
votes
5 answers

Is there a way to find if the XCUIElement has focus or not?

One of my screen has multiple text fields, I can land to this screen from different other screens. In each case I am making one or another text field as first responder. I am not able to write test to determine whether the desired textField has…
Sandy
  • 3,021
  • 1
  • 21
  • 29
24
votes
8 answers

/Fabric.framework/run: No such file or directory Xcode7

how can I fix this ? /Users/MyName/Library/Developer/Xcode/DerivedData/MyProName-flnujrubzrsocdfudhdqzvrueima/Build/Intermediates/MyProName.build/Debug-iphonesimulator/MyProName.build/Script-6F5256511BB54D93005685FE.sh: line 2:…
Roei Nadam
  • 1,780
  • 1
  • 15
  • 33
24
votes
25 answers

Xcode 7 compile error : "Command failed due to signal: Segmentation fault: 11"

Yesterday I installed the official Xcode 7 and when I tried to open one of my Swift projects, appeared an alert saying that the new Xcode version wants to update my swift code (or something like this). Okay, I accepted and after this appeared…
Chirila Vasile
  • 359
  • 1
  • 2
  • 11
24
votes
4 answers

How do I reset the application data after each test with Xcode 7 UI Testing?

Apple introduced in Xcode 7 new UI Testing but I have a struggle whenever the tests launches the app, it starts with data that the application had before. It means tests cannot be independent and can be influenced by other tests. It is not possible…
Tomáš Linhart
  • 13,509
  • 5
  • 51
  • 54