Questions tagged [xcode6]

Xcode 6 is Apple's integrated development environment (IDE). This tag should only be used for questions about Xcode itself, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] for iOS programming questions.

Xcode is Apple's integrated development environment (IDE) for developing OS X and iOS apps. The version 6 was presented at the WWDC on June 2nd 2014. The new features of Xcode 6 include the new programming language Swift, the playground as an interactive way to play with the code and a more visual debugger.

The latest production version of the IDE is Xcode 6.4. Download Here

The important enhancements are described here and here.

This tag is for IDE only questions with the version 6. Questions related to the programming languages should go to the correct tag , , and . When they are only related to the os and .

6121 questions
3
votes
3 answers

How to fix "reference cannot be bound to dereferenced null pointer" warning

Xcode 6.3 (beta) gives me new warnings, any suggestions how to fix the problem? I don't think removing the check completely as void is a correct answer, since in some cases "camera" has been NULL and caused crashing later elsewhere. Reference…
JOM
  • 8,139
  • 6
  • 78
  • 111
3
votes
1 answer

'UIWindow?' does not have a member named 'rootViewController'

I downloaded Apple's Table Search with UISearchController (Obj-C and Swift) sample code. I'm using Xcode 6.3 beta. Upon opening the Swift file, I converted the code to Swift 1.2 (via Edit/Convert). After conversion, I get the following compiler…
Adrian
  • 16,233
  • 18
  • 112
  • 180
3
votes
0 answers

Jenkins not finding Xcode 6 scheme, even though it has been shared

I have Jenkins set up to run a build job on a local machine. I'm running Xcode 6 and Jenkins 1.598. This is the console output: Started by user anonymous .... =========================================================== == Available provisioning…
Laura
  • 31
  • 2
3
votes
2 answers

Swift - Changing an array value of function call

I like to change an array value for my function call. Code for my ViewController2 that calls a function calculate class ViewController2: UIViewController , UITableViewDelegate, UITableViewDataSource { var springDisplacement : [Float] {return…
Terry Chia
  • 53
  • 1
  • 6
3
votes
8 answers

fatal error: unexpectedly found nil while unwrapping an Optional value - Stanford Calculator

I'm watching the Stanford Swift lecturers on ItunesU and have some trouble in understanding. The lecturer is typecasting a String to a Double at one point. He did it as follows: return…
Michael
  • 1,030
  • 14
  • 29
3
votes
1 answer

Xcode 6 debugger shows "0 objects" for instance (even when description implemented)

I am encountering what I think is a bug with the Xcode debugger. I am using Xcode 6.1.1. When I try to introspect one of my custom classes, instead of seeing that it's derived from NSObject and its properties and values, all I see is "0 objects". It…
dejo
  • 86
  • 5
3
votes
0 answers

Why does xcodebuild fail when trying to link to test target?

I have an Objective-C Xcode project. Previously, there were no test targets in this project. We added a Swift-based test target and a few basic tests. The project continues to build from the Xcode GUI just fine. However, building from the command…
Michael Luton
  • 1,058
  • 11
  • 29
3
votes
3 answers

How can I get index path of cell on switch change event in section based table view

I have custom cell having switch in few cells at right side. what I want is to store value of specific cell on switch change event. Table view has number sections so I can't set tag for switch because I need section as well as row to obtain index…
Ahad Khan
  • 411
  • 2
  • 18
3
votes
1 answer

Collapse Computed Properties and Property Observers in editor?

Is it possible to collapse this: var index:Int = 0 { willSet { } didSet { } } and this: var index:Int { get { } set { } } ... in XCode 6 yet? Im using XCode 6.1.1 which I believe is the latest but I cant find any settings for…
Arbitur
  • 38,684
  • 22
  • 91
  • 128
3
votes
0 answers

iOS app localization: strange value in iTunes Connect

We have an iOS app which does not have any localizations (it's English-only). In the past the builds had "English" in the "Localizations" field on the Build Details page in iTunes Connect. Yesterday though, I've noticed that that field shows the…
TotoroTotoro
  • 17,524
  • 4
  • 45
  • 76
3
votes
2 answers

Swift 'WKInterfaceLabel' does not have a member named 'text'

I'm working on an iWatch application and I'm getting the following error: 'WKInterfaceLabel' does not have a member named 'text' The outlet: @IBOutlet var numField: WKInterfaceLabel! Relevant code block which causes the error: func…
Yashar
  • 275
  • 4
  • 18
3
votes
2 answers

Xcode Bots lacks write permission to create Pods directory.

I setup a Xcode6 server and bots following the iOS document. The bot is connected to the Bitbucket git with provided username and password. I didn't have any problem syncing down the latest code. Then I setup the following trigger script for the…
3
votes
0 answers

Run a script between compiling and linking

I'm looking for a way to add an auto-generated code to an app, and the code is dependent on the compiled object files. Is there a way to run a script after the source files were compiled, but before the object files are linked? Adding a build phase…
silyevsk
  • 4,021
  • 3
  • 31
  • 30
3
votes
0 answers

how do i fix broken Xcode 'git blame' / 'git log' panel?

for a while, i've been happy to have the capability in Xcode to use git log & git blame in the comparison panel. at some point in the recent past, this panel has stopped showing anything. in 'blame' mode, the panel is blank and the same color as my…
john.k.doe
  • 7,533
  • 2
  • 37
  • 64
3
votes
1 answer

Xcode debugger reporting Swift dictionaries as empty (po reports {})

When I wait until Xcode 6.1.1 hits a breakpoint after this line let metrics = ["leading" : 15.0, "size" : 44.0] and then type po metrics the debugger reports (after several seconds delay) {}, which seems wrong. po metrics.count reports 2, which is…
Drux
  • 11,992
  • 13
  • 66
  • 116
1 2 3
99
100