Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [swift]

Programming language available within Xcode which can be used to develop iOS and OS X applications. WARNING: Questions relating to programming generally belong at Stack Overflow where programming questions are best asked and answered.

2
votes
1answer
19 views

Compiling Swift 2 code

I have an app which is written in Swift 2.1. Is it possible to build it in Xcode 9? If not, how do I build it?
1
vote
0answers
28 views

How can I remove annoying messages about versioning from Xcode?

Practicing a bit with the Swift language, I am currently using Xcode v.9.2 in the playground mode. While coding, every time I just add a single statement, the following window appears: Is it possible ...
0
votes
1answer
34 views

What is Visual Studio Code? Is it an efficient tool for Swift Development? [closed]

Scrolling to the #Linkedin feeds I have come across the term #VSCode. Please, anybody, explain the pure purpose of the tool or it's really trending in development Visual Studio Code combines the ...
1
vote
0answers
18 views

How to find out fully qualified hostname in osX (Terminal / Swift)? [duplicate]

i've checked several posts, for example - (Make `hostname -f` return fully qualified hostname) My apple machine is connected to the domain and i'm logged on with a domain user. the thing is, that ...
1
vote
1answer
49 views

cheapest iPad necessary for running Swift Playgrounds application

What's the oldest (read: cheapest) iPad I can purchase that will run the Swift Playgrounds app for learning the Swift programming language?
2
votes
1answer
73 views

XCode Comment Selection adds comment characters in first column?

I guess this is a personal preference, but does anyone know if there's config for it: when i use cmd+/, the // (e.g. in a swift file) is always placed in the first column. I would prefer it be at the ...
2
votes
0answers
224 views

Apple Xcode: remapping camera's Pan, Orbit and Dolly controls in SceneKit module

I'd like to remap the following camera controls in SceneKit module of Xcode 9.2 (I'm coding in Swift): panning – alt + LMB orbiting – LMB dollying – alt + MMB Pan drags the virtual camera ...
1
vote
0answers
77 views

Swift4: Correctly set PRODUCT_NAME from Xcode

I'm building a Swift4 app on MacOS that uses GTK+3 to provide a GUI. I have my package.swift file correctly setup and my app builds both from the terminal and in Xcode. However, when I run the app ...
1
vote
0answers
21 views

iTunes Connect developer API for own statistics site [duplicate]

I'd like to setup my own statistics site for my own released apps. I'm just wondering, if it's possible to have an iTunes Connect API where I can fetch all statistics from the iTunes Analytics area ...
1
vote
4answers
181 views

Is it possible to program an iOS app using an iPad?

As the title states, I am trying to ascertain whether or not it is possible to program (using XCode, I'm guessing) iOS apps for iPad and iPhone using an iPad. I cannot find any related details using ...
1
vote
1answer
85 views

Where to find online documentation for older versions of Swift?

Is there an official online Apple source for documentation for Swift 3? (Preferably that can be accessed without signing in to a developer account.) Browser searches for "Swift 3" are finding links to ...
2
votes
2answers
623 views

Terminal problem: “-bash: $: command not found”

I'm trying to start learning Swift and when I use the terminal line $ export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}" it gives me -bash: $: command not found ...
2
votes
0answers
29 views

Want to create a custom-named folder fram a selection of files. What are my options?

I have a large number of files, and I want to create custom-named folder from a selection, where the selection can vary in number of files. I would like to name the folder with the name of the 1st ...
0
votes
1answer
44 views

can't swift auth in Sierra

swift auth yields the error: error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-auth (No such file or directory) when ...
1
vote
0answers
53 views

How do I stop Xcode from replacing “selected” character with another character?

I made some changes to some source code today, and noticed that when I replaced "inDirectory" in a Bundle.mainBundle.pathForResource call with "subdirectory" and subsequently put it back in, Xcode ...
3
votes
1answer
1k views

How to find duplicate lines of code in Xcode

When I am making applications in Xcode, I sometimes find that I write duplicate code. Is there a way in Xcode to find duplicate code in all files? I would like to know this because I would put the ...
1
vote
1answer
1k views

Apple guidelines for back button

Are there any guidelines for the position of the back button? I always see the back button at the top-left part of the screen, but I don't know the exact position I should place it.
4
votes
1answer
322 views

How do you install playground books on iPad?

I found a playground book from Apple online called "Talking To The Live View". It's an updated playground from the 2016 WWDC. I want to install it on my iPad and try it out. Further, I want to ...
2
votes
1answer
702 views

How to have both Swift 2 and Swift 3 books in iBooks library

I'm a professional software developer who is still supporting clients using Swift 2. However, I'd like to be getting up to speed on Swift 3 since clearly it is the wave of the future. My copy of ...
2
votes
2answers
4k views

ERROR ITMS-90158: URL schemes need to begin with an alphabetic character - Google client ID

When trying to Upload to App Store... received the following error: ERROR ITMS-90158: "The following URL schemes found in your app are not in the correct format: ... URL schemes need to begin with an ...
1
vote
0answers
124 views

Get Swift Playgrounds back? iOS 10 GM Warning

I just updated to the final release of iOS 10.0.1 on iPad Pro 12.9 inch Swift Playgrounds is gone, and it's not in the App Store. I've lost all my Playgrounds, I presume. No great loss. But how do ...
0
votes
2answers
8k views

iOS background image height width in Xcode for 1x, 2x, 3x [closed]

I am trying to add a background image to iOS app. I am not sure about the dimensions of the image for the 1x, 2x, 3x. I want the background image working for all screen sizes.
3
votes
0answers
105 views

Monitoring directory in finderSync extension failed to work [closed]

I have developed a Cocoa application with a FinderSync extension through which a newly created directory is monitored. Sometimes it works fine but sometimes when I activate the Drive and Dropbox ...
1
vote
2answers
811 views

Install unsupported iOS version

I am developing iOS apps with Swift, and don't want to buy an Apple device to test them, and have just got an iPod 4gen which supports iOS up to 6.1. I just wanna know if there is absolutely no ...
0
votes
1answer
183 views

Can't use my 9.0.1 iPhone with Xcode

My Macbook and my iPhone are updated to the OS X 10.11 Capitan and iOS 9.0.1, but when I try to use my iPhone as a running device with Xcode, it tells me I can't use it because of the version of them. ...
15
votes
1answer
13k views

Reopen Swift 2.0 migration tool in Xcode 7

I just opened a Swift project on the new Xcode 7. I didn't really look on what button I clicked and closed the migration tools without migrating anything. Any idea how I could reopen it?
6
votes
1answer
17k views

Is Xcode with Swift on Mavericks possible?

My school computers have OS X 10.9.4 on them but they don't want to update them because of incompatibility with their Music class software. From what I see on Apple's website Xcode 6.4 and 6.3.1 both ...
10
votes
3answers
31k views

Is it possible to select which version of Swift to use in Xcode?

There's an update for Xcode 6.3 and it includes a new version of Swift (1.2). If I update, do I have to migrate all my Swift code to 1.2 or can I select an older version of Swift?
2
votes
1answer
1k views

XCode debug error Thread 1

Ok so I'm trying to work with swift on XCode but every time I start to run my code I get this Thread 1 Queue: com.apple.main-thread(serial) What does this mean?, and how do I fix it? Also i've ...
2
votes
0answers
1k views

How to disable indexing for a big Swift project?

I have a big Swift project. It's about 40 ViewControllers, 2 storyboards and some frameworks. When I make some changes XCode begins indexing all the project and it takes a very long time! How can I ...
0
votes
1answer
156 views

Swift is not available for OS X Application?

I just had a clean install of Yosemite Version 10.10 (14A389), and my Xcode is Version 6.0.1 (6A317). When I create a new iOS project, I can choose languages from Swift and Objective-C. However, when ...
2
votes
4answers
4k views

How can I download Swift?

I've been trying to get my hands on Swift, but I can't seem to find it. Is it released yet? If not, when will it be released?
3
votes
2answers
332 views

Swift on Xcode 6

I'm trying to use Swift on Xcode 6 for an OS X application, but it defaults the language to Objective-C and won't let me switch it to Swift. I can use Swift for iOS but not OS X. I have the latest ...
2
votes
2answers
164 views

How should I organise my plist? [closed]

I'm creating a game where the player can unlock worlds, where they can unlock levels within those worlds, each levels has a highscore, and so on. I was wondering in which way should I store this data?...
2
votes
3answers
1k views

Programming Swift without OS X [duplicate]

A friend of mine suggested that I learn Swift, as it would help me get a job that I had applied for, and I thought this was a good idea. The only problem: I don't own a Mac computer, or anything with ...
5
votes
1answer
7k views

How to install Xcode 6? [duplicate]

I just got myself a MBA and I am wondering how do I install Xcode 6 on my MBA? In the Mac App Store I can see Xcode 5.1.1 so I have started installing that on the MBA. But, I want to install Xcode 6 ...
2
votes
0answers
490 views

What does Swift mean for people learning iOS development for the first time [closed]

I quit my job to pursue programming full time and I was planning to take an ios app development course at a college near me that teaches iphone & ipad dev using Objective C. Now that Swift has ...
14
votes
7answers
46k views

Where can I download Xcode (n) Beta?

I want to start developing in Swift. I already own an apple developer account, yet am struggling to download Xcode (n) beta. How can I do this? Thank you in advance.