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
30
votes
17 answers

Xcode 7 UI Tests, Recording button is greyed out

I am trying to add UI tests to my existing project using Xcode 7. However the UI test recording button is always greyed out. What I am missing here? I tried restarting Xcode, cleaning and rebuilding the project and adding a new UI test target. Does…
rustylepord
  • 5,681
  • 6
  • 36
  • 49
30
votes
5 answers

Xcode 7 add trailing/leading/top/bottom constraints

In Xcode 6, I could use the Editor menu to Pin: Leading Space to Superview Trailing Space to Superview Top Space to Superview Bottom Space to Superview I can't find a way to do this in Xcode 7 beta. If I press the Align button in the Storyboard…
Casey Perkins
  • 1,853
  • 2
  • 23
  • 41
30
votes
2 answers

How to use code coverage in Xcode 7?

I know about new feature in Xcode 7 - Code Coverage. I know how to turn it on: go to Edit scheme -> Test -> Info tab -> enable Gather coverage data. I did it, run tests, and... Where is Test Report for my tests?
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
30
votes
0 answers

STGenericIntentDateRange undefined in Xcode 7 Beta

I get the following message in the console when running my app after upgrading to the latest Xcode 7 Beta: objc[51750]: Class STGenericIntentDateRange is implemented in both…
Sidetalker
  • 698
  • 4
  • 14
29
votes
3 answers

XCode 7 (Beta 3 & 4) Could not download and install iOS 8.* simulator

Trying to get iOS 8 simulators in XCode 7. Prior to beta 3, that wasn't possible but in beta 3 release notes: "Xcode 7.0 beta now supports downloadable legacy simulators." Xcode 7 beta 3 Release Notes They also show up in the "Downloads"…
bdalziel
  • 2,005
  • 3
  • 17
  • 32
29
votes
4 answers

Could not cast value of type 'UIView' (0x112484eb0) to 'SKView' (0x111646718)

Could not cast value of type 'UIView' (0x112484eb0) to 'SKView' (0x111646718). I keep on getting this error. Can anyone help me because the line of code is there by default. I converted the SK game into the latest swift syntax using the xcode 7…
Aryaman Goel
  • 538
  • 1
  • 4
  • 15
28
votes
5 answers

Are ++ and +=1 exactly the same?

I just switch to Swift for couple days and I notice that the postfix and prefix ++ and -- will be removed in Swift 3. I have done some research and according to the announcement on the Swift website, the operator ++ and -- will be replaced by += 1…
hientrq
  • 762
  • 8
  • 14
28
votes
7 answers

Error: The source control operation failed because the revisions

I've installed Xcode 7, and now always get this message when I select "commit" from xcode menu. "The source control operation failed because the revisions... could not be found." Any idea? :)
Franck
  • 8,939
  • 8
  • 39
  • 57
28
votes
5 answers

Xcode Test not detect my class

I have class named Meal.swift in my project and a unit test func testMealInitialization() { // Success case. let potentialItem = Meal(name: "Newest meal", photo: nil, rating: 5) XCTAssertNotNil(potentialItem) // Failure cases. …
Imran Sh
  • 1,623
  • 4
  • 27
  • 50
27
votes
1 answer

Can I disable animation for Xcode-UI-Tests?

I am using Xcode7 to write UITest, the problem is I need to wait for all the steps to happen before I validate the actual result. This takes a lot of time with all with view controller pushing/presenting/dimissing. Is there a way through which I…
Sandy
  • 3,021
  • 1
  • 21
  • 29
27
votes
10 answers

Xcode 7 Warning! was built for newer iOS version (5.1.1) than being linked (5.1)

I upgraded Xcode 6 project to Xcode 7 and started seeing the warning was built for newer iOS version (5.1.1) than being linked (5.1). How to fix this warning?
last-Programmer
  • 985
  • 3
  • 9
  • 19
27
votes
7 answers

CGContextSaveGState: invalid context 0x0 Error only on device

Update: I am using XCode 7 Beta with Swift 2.0 When I try to run my app on an iPhone I get these 3 errors: : CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental…
mattgabor
  • 2,064
  • 6
  • 25
  • 38
26
votes
9 answers

How to speed up UI test cases in Xcode?

Since Xcode 7 we have a nice API for UI testing. Mostly I'm satisfied with it. The only concern is related to the speed. In the beginning an ordinary UI test case (about 15 actions) ran approximately 25 seconds. Then I mocked networking completely.…
Artem Stepanenko
  • 3,423
  • 6
  • 29
  • 51
26
votes
8 answers

The app icon set "AppIcon" has an unassigned child

I clean built my app and see this error message: The app icon set "AppIcon" has an unassigned child. When I view Images.xcassets every icon slot is filled with the correct icon and there are no unassigned icons. In the past XCode seemed to randomly…
John Cashew
  • 1,078
  • 2
  • 12
  • 28
26
votes
3 answers

Submitting App from building in Xcode 6.4

I previously built my app in an Xcode 7 beta as my testing device is an iOS 9.0 device. I recently deleted Xcode 7 and began working on my app in Xcode 6.4 (not a beta). 6.4 does not support iOS 9 but my iPhone on an iOS 9 Beta is not uneligible (as…
kygcoleman
  • 734
  • 15
  • 25