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 .

6149 questions
956
votes
9 answers

Swift Beta performance: sorting arrays

I was implementing an algorithm in Swift Beta and noticed that the performance was very poor. After digging deeper I realized that one of the bottlenecks was something as simple as sorting arrays. The relevant part is here: let n = 1000000 var x = …
Jukka Suomela
  • 11,423
  • 4
  • 32
  • 45
622
votes
52 answers

Xcode 6 Bug: Unknown class in Interface Builder file

I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the message Unknown class X in Interface Builder file. It crashes because supposedly Xcode can't find my custom classes that I have linked in my Storyboard but it shows that…
Epic Byte
  • 33,169
  • 12
  • 40
  • 88
323
votes
4 answers

What's the difference between all the Selection Segues?

Show Show Detail Present Modally Popover presentation Custom What is the difference between them? I couldn't find any documentation on it. There used to be some which I found in a Google search, but it's now gone:…
User
  • 20,562
  • 35
  • 99
  • 185
322
votes
10 answers

Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

I opened an existing iOS project with Xcode6 beta6, and Xcode lists the following warning for both Storyboard and Xib files: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 I tried addressing the warning by…
mono
  • 4,249
  • 2
  • 16
  • 36
321
votes
32 answers

Ineligible Devices section appeared in Xcode 6.x.x

After installing Xcode 6 my devices moved to greyed-out section Ineligible Devices and I can't select them as deploy target: Update: This error occurs in all versions of Xcode 6.x.x. There are so many different reasons causing this problem Check…
skywinder
  • 20,546
  • 15
  • 87
  • 122
320
votes
8 answers

How do I create a category in Xcode 6 or higher?

I want to create a category on UIColor in my app using Xcode 6. But the thing is that in Xcode 6 there is no Objective-C category file template. Is there any option to create a category in Xcode 6?
Yalamandarao
  • 3,815
  • 3
  • 18
  • 24
284
votes
58 answers

"The file "MyApp.app" couldn't be opened because you don't have permission to view it" when running app in Xcode 6 Beta 4

Whenever I try to run my app in Xcode 6 Beta 4 I am getting the error: The file "MyApp.app" couldn't be opened because you don't have permission to view it. This error appears no matter what simulator or device I target. I have tried: Deleting all…
drewag
  • 88,073
  • 28
  • 133
  • 127
279
votes
32 answers

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."

I have an application which works fine on Xcode6-Beta1 and Xcode6-Beta2 with both iOS7 and iOS8. But with Xcode6-Beta3, Beta4, Beta5 I'm facing network issues with iOS8 but everything works fine on iOS7. I get the error "The network connection was…
VoidStack
  • 2,928
  • 2
  • 12
  • 10
266
votes
8 answers

Why isn't ProjectName-Prefix.pch created automatically in Xcode 6?

Why isn't ProjectName-Prefix.pch created automatically in Xcode 6 ? Is the precompile header no longer needed ? Where should I write the code that was in ProjectName-Prefix.pch before ?
Wei
  • 3,492
  • 4
  • 16
  • 18
265
votes
6 answers

trying to animate a constraint in swift

I have a UITextField that I want to enlarge its width when tapped on. I set up the constraints and made sure the constraint on the left has the lower priority then the one that I am trying to animate on the right side. Here is the code that I am…
icekomo
  • 8,336
  • 7
  • 27
  • 53
254
votes
3 answers

What is "Constrain to margin" in Storyboard in Xcode 6

I am Working with autolayout and constraints and found there is a Constrain to margins option in Xcode 6 which was not present in Xcode 5 and is checked by default. I created a test project then I added a UITableView on a ViewController with the…
Bhumit Mehta
  • 15,898
  • 11
  • 46
  • 63
235
votes
30 answers

My prerelease app has been "processing" for over a week in iTunes Connect, what gives?

I used Xcode 6.1.1 to upload a new version of a prerelease app to iTunes Connect so I could distribute it to my external beta testers. I've done this with two versions of the same app previously and it worked fine. But this time, the upload was…
Robert Atkins
  • 20,676
  • 14
  • 60
  • 92
229
votes
6 answers

Simulator error FBSSystemServiceDomain code 4

I'm trying to run an app in the simulator but get this error message: Unable to run app in Simulator An error was encountered while running (Domain = FBSSystemServiceDomain, Code = 4) I've not seen any previous references to this from googling…
Gruntcakes
  • 36,166
  • 41
  • 170
  • 346
205
votes
37 answers

Changing the Status Bar Color for specific ViewControllers using Swift in iOS8

override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent; } Using the above code in any ViewController to set the statusBar color to White for a specific viewcontroller doesnt work in iOS8 for me. Any…
Anuj
  • 6,537
  • 3
  • 18
  • 24
201
votes
13 answers

Xcode 6 crashes on submitting Archive

Today I uploaded my first build of first app successfully to App Store for beta testing. After making a few changes, when I tried to submit the new archive again Xcode crashed, and still crashes. It's the log: Process: Xcode…
Maysam
  • 6,738
  • 13
  • 63
  • 94
1
2 3
99 100