Tagged Questions
Xcode is Apple's integrated development environment (IDE). USAGE NOTE: Use this tag only for questions about the Xcode IDE 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.
0
votes
0answers
11 views
iOS 10 beta : URL scheme is not working but works in IOS 9 all versions
In one particular scenario I am taking the user to passcode settings page . below is the code used for this -
[[UIApplication sharedApplication] openURL:[NSURL ...
0
votes
0answers
9 views
How to populate array and view it's data at the same time - Swift - IOS9
I am trying to retrieve data from an online database, and I do that successfully; However, after retrieving the data from the database I would like to store it in an array and then populate a listview ...
0
votes
0answers
11 views
couldn't encode Dictionary of type Dictionary<String,JSON> by using library FierceCoder swift
i m using two libraries one is swiftyJSON for Json parsing and other is FierceCoder to encode struct.
i have a struct name TimelineDataStruct in which there is a stored property of type ...
-2
votes
0answers
6 views
Dlib configuration in Xcode
I want to use dlib in my opencv project in Xcode (C++). I never used dlib before and I don't know how to configure dlib and specify paths to get it working in my Xcode. Do any know how to use dlib in ...
0
votes
1answer
26 views
Why does my app crash when I pick a song from my music library in Swift?
My app crashes on this line of code and there is no error message printed in the console. Why does this happen? This is the line of code where it crashes.
let url: NSURL = ...
0
votes
0answers
6 views
Error while executing “fastlane provision” command
I'm trying to integrate FastLane for automatic app submission to app store. I am following this tutorial, but while Creating Certificates and Provisioning Profiles using "fastlane provision" command ...
0
votes
0answers
19 views
Xcode 8.0 beta No such module found Alamofire Swift 3.0
Hello Im on Xcode 8 beta and Alamofire is not working. When I do the import statement it says no such module and Im not able to use it. I followed the instructions on Github for installing for Swift ...
0
votes
1answer
35 views
Where to find the source code for UIScrollView
Where can I find the source code for a UIScrollView?
I would like to know what functions it has and how they work so that I can properly make a subclass of it and add my own methods.
0
votes
0answers
4 views
Glitch when drawing a custom insertion point of NSTextView
I'm trying to draw a custom insertion point of my NSTextView subclass. And everything works fine... Except the first launch of a document. When creating a new document the first blinking of the ...
1
vote
0answers
11 views
How to compile Swift code targeting the latest SDKs using Xcode 7 and 8?
The nullability of some methods on the NSURL API changed between iOS 9 and 10.
For example, iOS 10 returns an optional for the URLByAppendingPathComponent function but iOS 9 does not. Using ...
0
votes
3answers
36 views
how to get a blurred effect behind my UINavigationBar
I have been trying to get an effect of having my scrollView appear under the navigationBar slightly blurred as is the case in the apple messages app. I have tried the following methods and none of ...
0
votes
2answers
16 views
Segue to ViewController from UITabBarController Scene and back “hides” UITabBar
So I have a problem with my app at the moment. So I have a UITabBarController that has 2 "pages". The first page, called AddExpense (its class is AddExpenseViewController), has a button that segues to ...
-1
votes
1answer
42 views
Xcode 8: Compile with iOS 9.3 base SDK?
I upgraded my iOS app to Swift 3.0 in Xcode 8.0 beta (8S128d). I thought it was all ready to go and uploaded it to iTunes Connect. When I clicked "Submit for Review", it gave me a list of 26 errors, ...
0
votes
0answers
11 views
Xcode no longer able to find cocoapods after update to 1.01 — even after reverting back to 0.39
Here's the sequence of events:
(1) My project was working just fine with Cocoapods for months.
(2) I added a pod, pod 'PKRevealController' and ran pod install.
(3) Xcode could not find the new pod ...
-1
votes
0answers
16 views
How to present objective C ViewController file from Swift?
I drag and drop my objective C file into swift project and make the bridge as well . When I am going to present my objective C viewContoller from swift ,either app crash or blank screen appear.
0
votes
2answers
27 views
How to create managedObjectContext using Swift 3 in Xcode 8?
Facing issue "Value of type 'AppDelegate' has no member 'managedObjectContext' In new Xcode 8 (using Swift 3, iOS 10) when trying to create new context in View Controller
let context = ...
0
votes
0answers
2 views
Device Management Profile gets deleted after time
I installed an app through Xcode 7 (and tested 8) and after some time (usually a couple of days) I can't launch the app anymore. I saw that my iPhone somehow (automatically) deleted the Device ...
0
votes
0answers
14 views
Swift iOS How to save a MKPlaceMark to my parse backend?
I have a MapView where user can search for a place by name. I am able to get a MKPlaceMark for the location a user selects. Now what is the best practice to store the placemark on Parse backend? so ...
2
votes
2answers
28 views
Registering for Push Notifications in Xcode 8/Swift 3.0?
I'm trying to get my app working in Xcode 8.0, and am running into an error. I know this code worked fine in previous versions of swift, but I'm assuming the code for this is changed in the new ...
-2
votes
1answer
22 views
NS_ASSUME_NONNULL_BEGIN Macro
I am following an online tutorial from team tree house and one of the steps is to create an NSManagedObject subclass for my data model.
When I did that the code automatically generated a class and ...
0
votes
0answers
3 views
How to manipulate UITableView ( Xcode) that is populated by a NSMutable array( Objective-C) which holds custom object of a class
I am working with a UITableView in Xcode.The table is populated with data from NSMutable array (arrayOfHalInventoryItems).The array holds the object(halInventoryItems) of class HalInventoryItems.
...
0
votes
2answers
8 views
Adding a two new phases to an Xcode framework project
I am building a project on Github written in Objective-C. It resolves MAC addresses down to manufacturer details. The lookup table is currently stored as text file manuf.txt (from the Wireshark ...
0
votes
0answers
6 views
How do I automatically start inline video on iOS 10
Since iOS 10 supports inline video on iPhones now, I was wondering if there is a way so I can start a video from a webview, and have it start inline automatically without the user having to do it ...
0
votes
1answer
13 views
Simulator background is dark / broken
I am following the Apple tutorial on Swift and for some reason my simulator background is black causing parts of the app to not show up correctly. This is what my simulator looks like
This is ...
0
votes
1answer
36 views
Xcode 8 Beta crashes when loading project
I was working on my project in Xcode 8 Beta, and it crashed. All of a sudden it doesn't want to load my project. I've filed a bug report with Apple, but I thought maybe I should ask here in case ...
0
votes
1answer
17 views
Cannot perform pod init on Mac OS X 10.11.5 El Capitan
I am currently trying to install Cocoapods and load Firebase into my Xcode project. I installed Cocoapods correctly by typing sudo gem install -n /usr/local/bin cocoapods (found on another Stack ...
-1
votes
0answers
11 views
Weather radar file via KML - OBJECTIVE C
I am brand new to objective c. I am working in X Code recently, and I am trying to get a NWS Radar Site KML file to work on this program. I have the recommended Sample KML File, but it still fails to ...
0
votes
0answers
3 views
What is the EmbeddedAppDeltas folder in XCode and can I delete it safely?
On my computer there's a folder of nearly 1GB in size at the following path:
/private/var/folders/ph/q7jl9fz115g104hfgpsw5k6w0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas
It remains ...
0
votes
1answer
16 views
swift alamofire show viewcontroller after remote data has loaded
I wonder how I can show a VC after the remote data has loaded. I am not using a tableView but a normal VC.
My code look like this:
viewDidLoad:
override func viewDidLoad() {
...
0
votes
0answers
38 views
When adding property to a class by adding it in a category, getting “unrecognized selector…”
I tried to expand on SKSpriteNode, and tried several ways to do it (by has-a relationship in a new class, by extending it directly), finally I want to try to do it using categories. So, I make a ...
-1
votes
2answers
28 views
Xcode ask for a registered device in the Members Centre
I have started looking at swift so I downloaded Xcode 7.3.1 and fired up the app. When creating a project I added my apple account in the identity section and clicked in Fix Issue to provision my ...
2
votes
1answer
11 views
How does one use the GIDSignInButton Class in Association with Google Authentication?
Google has a class that provides the "Sign in with Google" button called GIDSignInButton. To customize the button you have to modify the included properties. How do you do this properly in Swift?
The ...
0
votes
0answers
34 views
Simulator freeze in Swift, breakpoint?
iOS rookie here struggling through the early stages of an app that was initially led by a mentor. Issue at the moment occurs upon attempting to button "next" to next page and save the inputted data ...
0
votes
0answers
8 views
NSURLComponents changes %2B to + on adding a new query Item
When I add a query Item then NSURLComponents changes %2B to + while %7B remains unchanged. From my understanding it should either decode both '+' and '{' why does it decode just one of them ?
...
0
votes
1answer
27 views
Xcode 7.3.1 not upgrading
I had an iPhone running iOS 8 and Xcode 7.1.1. I decided to upgrade my iPhone iOS to 9.3.
I then went ahead and downloaded the latest Xcode 7.3.1 from App Store. Here's my problem. Xcode still ...
0
votes
0answers
8 views
Can't upload app to itunes connect mac OS Sierra beta [duplicate]
I'm using Xcode 7.3.1, with mac OS Sierra beta (Developer release) and I can't upload to iTunes connect, I get the following error:
ERROR ITMS-90167:"No .app bundles were found in the package.
My ...
0
votes
1answer
26 views
NSWindow automatically closes after showWindow
I'm trying to open a NSWindow inside a Storyboard.
I've instantiated the controller correctly, the window opens but disappears instantly.
var sb : NSStoryboard?
var vc : NSWindowController?
...
0
votes
1answer
14 views
How to Reveal ViewController Storyboard Elements from a NavBarController inside of a TabBarController
So I have a CustomTabBarController that is created programmatically (not through storyboard). Inside of the viewDidLoad(), I create a ProfileNavController with the view controller being ...
0
votes
1answer
35 views
Swift + Firebase simulated login error
iOS rookie here struggling through the early stages of an app that was initially led by a mentor. Issue at the moment occurs in the login view controller:
override func ...
0
votes
0answers
4 views
Load interstitial AdMob Ad by loading view
I try to load a interstitial AdMob Ad after the view did load. The problem is, the ad will not be ready at this moment. I tried it with some looks, but I think it is only a work around. How can I fix ...
0
votes
0answers
15 views
getting “the application does not have a valid signature” message when trying to install the app
I have spent a few hours on this problem - and have Googled different solutions extensively, including all of the SO answers to this issue.
The app compiles fine, there are no errors. I have all the ...
0
votes
1answer
30 views
Framework causing crash (swift)
I am using the ReachabilitySwift framework (installed via Cocoapods) and it works perfectly on the Simulator. If I try to run directly on the device it crashes immediately. I have the following ...
-1
votes
1answer
18 views
Launch Screen Storyboard with centered image iOS
1 - I want to use a LaunchScreen.storyboard in my app
2 - In this launch screen I need to insert a brand image in center of the screen
Could anyone help me?
0
votes
0answers
9 views
XCode Folders Auto-Expanding When Clicking “Project Navigator”
Every time I re-open the Project Navigator tab in the left side of XCode (I.E move away from it into another tab and come back to it), my folders and subfolders all "magically" expand on their own. I ...
1
vote
1answer
37 views
iOS freezed UI without error logs
I have an issue on my swift iOS app and i'm not able to understand which is the real problem. I have a UITabBarController with five UINavigationControllers on each tab. Main content of these ...
-3
votes
1answer
35 views
Swift Xcode How to toggle colour of a shape with each tap of screen
I thought something like this would work but feel like my function is improper. It compiles but doesn't do anything and I'm not even sure it can work like this. I am very new to swift and appreciate ...
0
votes
2answers
50 views
How to swap ViewControllers in a UITabBarController [on hold]
I learned the basics of building a iOS app with Swift.
I want to do something but I'm not sure on how to build it, I have a tab bar controller with two item "Home" and "Account".
I want "Account" to ...
2
votes
0answers
19 views
SpriteKit/Metal memory leak with nothing happening
I have a memory leak that I can't seem to trace. Instruments sees it, and reports it as jet_buffer_Metal, but I don't know what that is pointing me to specifically.
It happens regularly. I have ...
0
votes
1answer
30 views
Why we cannot use the init method in NSCalendar *cal = [[NSCalendar alloc] init];
Why we cannot use the init method in NSCalendar *cal = [[NSCalendar alloc] init]; since init is an instance method that every class has?
Xcode give the message:
'init' has been explicitly marked ...