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
21
votes
3 answers

UI Testing Xcode 7- can't access element within subview

I'm trying to access an element within a subview and I'm finding it impossible to do so. The hierarchy being: View Controller: View tempView userEnterView zipCodeEntered I want to access the zipCodeEntered text field. I have an accessibility…
sebradloff
  • 385
  • 1
  • 3
  • 10
21
votes
2 answers

'invalid context 0x0' after Migration to iOS 9

I've migrated the app to iOS 9, and it works as usually, but there three log messages: : CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. :…
Mikhail
  • 1,061
  • 2
  • 13
  • 30
21
votes
4 answers

Xcode 7 UI Testing Failure: App accessibility isn't loaded

While I'm running UITests on Simulator with Xcode 7, it's failed when invoking XCUIApplication().launch() with App accessibility isn't loaded
Quanlong
  • 24,028
  • 16
  • 69
  • 79
21
votes
5 answers

iOS9 App has black bars on top and bottom

My app doesn't use auto layout, it was originally designed for an iPhone 4/4s and the UI has been mostly untouched since then. The layout is fairly minimal, so it hasnt been deemed a priority to switch it autolayout. Previously building for iOS8 my…
xceph
  • 1,036
  • 2
  • 13
  • 28
21
votes
6 answers

ld: framework not found Parse Xcode 7 beta

I succeed to install and use Parse framework with my new project, but I can't with a "template project". The template is just a Slide Menu from Appcoda You can download the project here. I have this error : ld: framework not found Parse clang:…
papay0
  • 1,311
  • 1
  • 12
  • 25
21
votes
4 answers

iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)

Would like to know about the new feature Free Provisioning introduced in iOS9 & Xcode 7. How Apple is now achieving that, as before we knew our device ids were enrolled in the profiles and hence it was possible to deploy the app on devices. Now only…
Rein rPavi
  • 3,368
  • 4
  • 22
  • 32
21
votes
6 answers

How to read a playground text resource files with Swift 2 and Xcode 7

Xcode 7 Playgrounds now supports loading files from the nested Resources directory. I can get SKScene(fileNamed: "GameScene") when I have a GameScene.sks in my Resources or NSImage(named:"GameScene.png") if I have a GameScene.png in your Resources.…
Jeremy Chone
  • 3,079
  • 1
  • 27
  • 28
20
votes
14 answers

Xcode hangs on "Compiling Swift source files"

I'm running Xcode 7.3.1. When building my Swift based project, it hangs on "Compiling Swift source files". I've tried various combination of deleting DerivedData, clean, run, restarting Xcode, restarting OS X, none seem to work. Any ideas?
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
20
votes
9 answers

why Xcode 7.2 crash 'Could not instantiate class named IBNSLayoutConstraint'?

*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named IBNSLayoutConstraint' I just update Xcode to 7.2 then i start to check is everything alright. but I have this…
ali
  • 481
  • 5
  • 15
20
votes
4 answers

Xcode 7 - Strange cast error that refers to XCUIElement

I've updated my code to XCode 7 and Swift 2.0, now some of my tests fail and I see a list of 40 warnings in the Test build that are completely unrelated with the code they refer to. The warning message is: "Cast From 'XCUIElement' to unrelated…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
20
votes
7 answers

Module file's deployment target is ios9.0 v9.0 with Xcode 7 / Swift 2

I have a project using some modules that I have installed via cocoapods. One of them is Charts. In order to migrate my project from Swift 1.2 to Swift 2 I have gone through the wizard that comes up when first opening the project with Xcode 7. The…
Christian Anton
  • 357
  • 1
  • 4
  • 13
20
votes
3 answers

Xcode 7 Warning - directory not found for option - iPhoneSimulator9.0.sdk

I have got this warning when upgrade my project: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks' How can I fix this…
asafbar
  • 931
  • 1
  • 9
  • 12
20
votes
2 answers

Xcode 7 GM can't commit (GIT)

Whenever I try to commit, using source control in Xcode, I get an error that I need to configure my email address and name (it seems to read my email address incorrectly). I went to the Terminal, and entered them (again). The error didn't go away. I…
coopersita
  • 5,011
  • 3
  • 27
  • 48
20
votes
5 answers

Swift 2 CLLocationManager Error updating

i updated Xcode 6 to Xcode 7 beta with Swift 2. I get this error and i can't find out how to fix it, please help me. Thanks. This is my code : func locationManager(manager: CLLocationManager, didUpdateLocations locations: [AnyObject]) { let…
markutus
  • 603
  • 2
  • 8
  • 12
20
votes
5 answers

Code coverage result is not accurate to real coverage in Xcode 7

I am running test cases in application with enabled code coverage data Xcode 7 Beta 2. But I am able to get only few files coverage data while my all test cases are running successfully. Some files has covered all codes by unit test cases but still…
Sudhir Kumar
  • 301
  • 2
  • 9