Questions tagged [swift]

WARNING: Questions relating to programming generally belong on Stack Overflow. Scripting and automation questions using swift are on topic here and SO but may be received better here if the overall question is less about the details of the swift language.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Storyboard Segue Navigation Controllers [closed]

I am a brand new member to xcode, and I have a few view controllers connected to a navigation controller. I want to have one view controller connect to the 'main menu' when a button is pressed. ...
0
votes
0answers
24 views

Creating a handler for moving and deleting files

Is it possible to have a listener be called whenever a file is moved or deleted? Preferably, I would be able to abort the action, but this is not required. I would need to know the original and, if ...
2
votes
2answers
152 views

A website to upload my ios app that anyone can download

Hi there I am looking for a website to upload my ios app(with swift) there and get it's link so that anyone can download it through the link. thanks for your help :)
1
vote
3answers
62 views

Getting Latest Version of Swift

I’m starting to learn Swift, and have tried the Swift shell. I notice that it is Apple Swift version 5.1.3 . I though it was up to 5.2 by now. How do I get the latest version of Swift on my MacOS? Is ...
3
votes
1answer
71 views

Is there a way to prevent predictive text from learning what the user typed

I want to prevent predictive text from being stored on the iOS device. Is there a way to do it? If I turn off predictive text, the app doesn't show the predictive text toolbar, but it still learns the ...
0
votes
2answers
22 views

Are there any guidelines by Apple on what content apple TV app should have

We are in the process of developing app for Apple TV, are there any guidelines that app should be either a video playing or gaming app, can I submit app with just readonly content like an iOS app and ...
1
vote
1answer
200 views

Cheapest mac for latest xcode? [closed]

I am doing a uni course which is called iPhone Software Engineering and it says that I need a mac that is able to run latest version of 'Xcode' for app developement and current SWIFT and the Apple iOS ...
1
vote
0answers
23 views

Upgrade to Swift 5 without upgrading OS X

I am currently using Mac OS Sierra 10.12.6. I cannot upgrade to a more recent OS version as the business applications I am using for WFH will not work. The default swift installed is 3.1. I want to ...
2
votes
1answer
59 views

App for macOS to add words to personal vocabulary list?

I search for a way to add unknown words in a personal dictionary or vocabulary list only by right-clicking the word and choosing the add option (in macOS). It would be very helpful for me to add the ...
0
votes
1answer
74 views

Swift Playgrounds on MacOS performs badly, spinning up the fans and working the CPU

Using the basic "Learn to Code 1" playground results in the MacBooks that I've tested on, including a 2020 MacBook Air, working far harder than I'd expect. The fans spin up and the CPU usage increases ...
2
votes
1answer
72 views

Where to find the keychain stored by KeychainSwift

I use KeychainSwift to store my user's keychain data using my created iOS app. The question is: Where can I see the data it stored? I already tried going to Settings -> Password & ...
0
votes
1answer
34 views

Core Graphics or SpriteKit? [closed]

I'm a junior iOS Developer and I have the requirements for a drawing app I need to build for my employee. I need to be able to add graphic elements on the canvas on different layers. These elements ...
0
votes
2answers
1k views

xCODE 11.3.1 - Failed to create provisioning profile

I'm trying to create a project, which will run on the xCODE's simulator, not on an iPhone. Right after the project is created, there are multiple errors. The first one is: Failed to create ...
0
votes
0answers
21 views

Is there a way to get readable iOS crash logs for crashes within a binary framework (cocoapod)

I have a binary framework (cocoapod) created using vendored_frameworks in the podspec. The code for this framework is not exposed (it shows up as XYZ.framework in Pods when installed in an app). When ...
1
vote
0answers
54 views

Modify iTunes library from a script

In my project, I have a bunch of music tracks in a directory of my computer. I want to add them to my iTunes library in an automated way. I also want to group them in playlists depending on the ...
0
votes
1answer
153 views

In iOS: Can my app launch another app and get a response/acknowledgement back? [closed]

In iOS, is there anyway i can launch another app to do something and then get a response back saying that it’s done. For example: My iOS app APP A launches another app APP B (e.g. Google Pay) to make ...
4
votes
1answer
1k views

Mac swift process blocks system, high memory pressure

Recently, since XCode 11, my Mac starts a process (it seems like it does so when indexing or building files) called swift and my Mac soon starts to lag. This process gathers a lot of memory (sometimes ...
0
votes
1answer
43 views

Tools, languages, libraries and API's for development of a MacOS wide application [closed]

Please just assume that the user has accepted whatever permission are required. Is it possible to listen to window actions under MacOS? In Swift preferably? For instance, if a window moves, is ...
0
votes
0answers
14 views

Choose HCI Host Controller from command line

How can I choose the the Host Controller OSX is using from the command line? I'm looking to duplicate the functionality pictured below (which is from the Xcode Bluetooth Explorer tool). Is there a ...
4
votes
1answer
152 views

VoiceOver reading results of Swift Playground print statements in Xcode

(By way of background I have been helping a local blind child learn coding. He's switching schools from a Windows based school to a Mac based school so I am trying to familiarise myself with VoiceOver ...
1
vote
0answers
62 views

iOS Newsstand app background mode [closed]

Does Apple still support Newsstand apps? I searched a lot but I can't find any tutorial or a demo for such an app with NewsstandKit. If this is not used anymore, why does the Newsstand background ...
0
votes
1answer
46 views

Why when I make a change to a project on xcode the previous project is affected? [closed]

I recognize that I'm new in using Xcode but I noticed A very strange behavior from XCODE, when I clone a project and I make changes in the Localizable.strings. these changes are automatically ...
1
vote
1answer
48 views

Do you need a Macbook Pro w touchID to test the authentication in your Swift app?

I'm thinking of buying a MBP base model for Swift programming, and I know that Xcode has a simulator for the touch-bar, but do I need the one with actual touchID hardware if I want my app to require a ...
1
vote
1answer
39 views

Can I lock my app until user give me a permission (like location permission)?

I am developing an app and I am highly in need of location services and without that my app is not working. Can I block users from using my app (showing a page to them) until they go to settings and ...
3
votes
1answer
325 views

Compiling Swift 2 code [closed]

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
35 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
103 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
49 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 ...
2
votes
1answer
675 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
0answers
492 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
68 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 ...
3
votes
1answer
280 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
1k 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 ...
0
votes
1answer
76 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
71 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
3k 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
423 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
825 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
9k 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
134 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
12k 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.
2
votes
0answers
139 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 ...
2
votes
2answers
2k 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
200 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
46k 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 ...
3
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 ...