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
108
votes
14 answers

Swift - Problems with corner radius and drop shadow

I'm trying to create a button with rounded corners and a drop shadow. No matter how I switch up, the button will not display correctly. I've tried masksToBounds = false and masksToBounds = true, but either the corner radius works and the shadow does…
Jake
  • 13,097
  • 9
  • 44
  • 73
108
votes
13 answers

How do I create a new Swift project without using Storyboards?

Creating a new project in XCode 6 doesn't allow to disable Storyboards. You can only select Swift or Objective-C and to use or not Core Data. I tried deleting the storyboard and from the project removing the main storyboard and manually setting the…
EhTd
  • 3,260
  • 4
  • 19
  • 18
106
votes
16 answers

Attributed string with custom fonts in storyboard does not load correctly

We are using custom fonts in our project. It works well in Xcode 5. In Xcode 6, it works in plain text, attributed string in code. But those attributed strings set in storyboard all revert to Helvetica when running on simulator or device, although…
Allen Hsu
  • 3,515
  • 3
  • 25
  • 38
104
votes
14 answers

Custom Font Sizing in Xcode 6 Size Classes not working properly with Custom Fonts

Xcode 6 has a new feature where fonts and font sizes in UILabel, UITextField, and UIButton can be set automatically based on the size class of the current device configuration, right in the storyboard. For example, you can set a UILabel to use font…
mnemia
  • 1,549
  • 2
  • 12
  • 14
104
votes
9 answers

Xcode 6 - Launch simulator from command line

I want to launch iPhone simulator from command line. until now I have been using the below command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone…
Balaji Sekar
  • 3,295
  • 3
  • 16
  • 13
104
votes
6 answers

Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6?

I have created a new Single View Application Project in Xcode 6 beta version. I want to rename swift class from ViewController.swift to some other name. But when I select Refactor -> Rename, it gives error Xcode can only refactor C and Objective-C…
Khawar
  • 9,151
  • 9
  • 46
  • 67
101
votes
27 answers

'Framework not found' in Xcode

I know this has been asked a couple of times. I followed instructions from these ones: Adding frameworks to project in Xcode 5 and having *relative* paths added xcode4: Linker error: Directory not found for option Still Xcode is giving this…
Kim Montano
  • 2,185
  • 4
  • 26
  • 39
99
votes
8 answers

Xcode 6 how to enable storyboard zoom?

I've updated to Xcode 6 beta 3 and see that the [+ = -] buttons in the storyboard corner are gone. Is there a way for me to zoom in and out on view controllers within a storyboard in Xcode 6?
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
99
votes
7 answers

How to print to console using swift playground?

I have been following the Apple Guide for their new language swift, but I don't understand why the bar on the right is only showing "Hello, playground" and not "Hello, world". Can someone explain why the println isn't being printed on the right? //…
Arian Faurtosh
  • 17,987
  • 21
  • 77
  • 115
98
votes
7 answers

NSUserDefaults not cleared after app uninstall on simulator

this may sound real NOOB! I want to check if it's the second time the user enters my application, so to keep the run count I'm using NSUserDefaults. I have implemented the following code in my rootViewController's viewDidLoad method: …
Reza Shayestehpour
  • 1,693
  • 3
  • 19
  • 27
97
votes
6 answers

How to use Swift documentation comments

I have a few questions about Swift documentation comments: Is there a way to make a Related declarations section like some of the Apple documentation has? For example, when I Option+Click the tablewView(_:heightForRowAtIndexPath:) method, it links…
ad121
  • 2,268
  • 1
  • 18
  • 24
97
votes
1 answer

What are the differences between segues: "show", "show detail", "present modally", "present as popover"?

What do the different segues do in Xcode 6?
Red
  • 1,425
  • 1
  • 10
  • 15
97
votes
8 answers

Multiple cursors / highlight next instance of currently highlighted word

In Sublime Text, it's easy to select the next instance of a word by pressing command + d and also place multiple cursors by pressing command & clicking. I know I'm not alone in saying this is an incredibly useful function in editors. I haven't had…
Matt Rowles
  • 7,721
  • 18
  • 55
  • 88
96
votes
13 answers

dyld: Library not loaded: @rpath with iOS8

I'm creating an iOS framework with Xcode6 and iOS8. When I link this with an iOS app and try running it on the device I get this error dyld: Library not loaded: @rpath/FrameworkName.framework/FrameworkName Referenced from:…
ArdenDev
  • 4,051
  • 5
  • 29
  • 50
96
votes
7 answers

how to save and read array of array in NSUserdefaults in swift?

I need create an array to add objects with this format like a dictionary in Swift : ["key1": "value1", "key2": "value2"] When I try to save it with NSUserDefaults all is correct, but when read NSUserDefaults with the key this crashes. What type of…
user3745888
  • 6,143
  • 15
  • 48
  • 97