I have a piece of code which can be build successfully in xcode 10.x version, but today the code build failed after I grade the xcode to 11.1 version, so I want to see if there's xcode version macro can be used in build phase, like this:#if XCODE_SDK_MAJ_VERSION <11 code line 1 code line 2#else code line 2#endifAny comments?
Search results for
DTiPhoneSimulatorErrorDomain Code 2
158,591 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello,I am working my way through the Apple tutorial, Food Tracker.https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ConnectTheUIToCode.html#//apple_ref/doc/uid/TP40015214-CH22-SW1I ran into an error while attempting to create Outlets. i.e. the app would no longer run in the simulatorIt was easy enough to delete the elements on the interface and start over.I am trying to take my time, do every step just as instructed, etc. I am confused by one view I stumble across. It appears like there are two different versions of ViewController. On the left-hand selecting ViewController.swift from the navigator, I see// // // // // // // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }When I select the Assistant Editor, on the right I see// // // // // // // import UIKit internal class ViewController : UIViewController { override inter
Your working Swift 2 Code Block has so many flaws and cannot be compiled with Swift 2. Please try to show us an actually buildable (or testable) Swift 2 code.Without proper info provided, we need huge amount of guesses to fix your issue.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Hi, I've been coding for a little while and recently have wanted to install all of the simple little apps I've made onto my iPhone. I got a apple developer program license but still Xcode will only allow me to install a maximum on two - why is this? I was assuming on getting the license Xcode would just see this and allow me to install more than 2. Any help would be most appreciated.
Hello! I am experimenting with multiple views in an app, and I realized that if I created more than 2 views, multiple back buttons would appear based on how many views were created (If 3 were created, the 2 would appear, one button going to one view and the other back button going to another view),so how do I fix this? Here is an image of the back buttons: And here is the code for the views: First View: Second View: Third View:
Hi,I have a scene with two different nodes. Each node has his own material and each material has a different SCNProgram (OpenGL es).When the scene is rendered it looks like if both nodes are rendered using the same progam. When I don't initalize the first node, the second is rendered correct and if I don't initalize the second node, the first node will render correct.Is this a bug? Can you use more then one custom SCNProgram in a scene?
After Update Beta 2 Chrome Can't Run Crash when Open.
I've used my redeem code to download macOS 10.12 Beta, then deleted it from /Applications. In hindsight that was a bad idea. When I press the download button for macOS 10.12 Beta 2 in the developer downloads website, it says the code has already been redeemed. If I look in my Purchased section of the App Store app, I can't see macOS 10.12 Beta2 listed. Do I need another redeem code, or is there some command I can run to make it visible in the Purchased section?
I found the issue on code because of that those two services are running and taking memory here is the code let intArrayOfIds = self.respsonseDict.map{ Int($01234567890) ?? 0}
Topic:
Programming Languages
SubTopic:
Swift
Tags:
is it possible to update from watch os 2 gm to final version as it comes?
Hello: I have the code below to try to get a random selection from CoreData store. However i'm getting a crash on line 33 with the error:Thread 1: EXC_BAD_ACCESS (code=1, address=0x232). After studying the code for hours, I still can't figure out why the crash. The code actually worked one time!!!let fetchRequest = NSFetchRequest(entityName: TempSCQ) fetchRequest.includesPropertyValues = false var selector = Int() nameGrade = gradeValue.stringValue print (Grade entered is (nameGrade)) func getRandomRecord () { if nameGrade == 2 { selector = Int.random(in: 0 ..< 355) } else if nameGrade == 4 { selector = Int.random(in: 0 ..< 418) } else if nameGrade == 6 { selector = Int.random(in: 0 ..< 375) } else if nameGrade == 8 { selector = Int.random(in: 0 ..< 813) } else if nameGrade == 12 { selector = Int.random(in: 0 ..< 355) } } getRandomRecord() fetchRequest.predicate = NSPredicate(format: qid == %@, selector) //Thread 1: EXC_BAD_ACCESS (code=1, a
I've read that Watch Series 2 has built-in GPS. Does it also have a compass? If so, how do you access it and not the compass on the phone?
(Reposting in these forums since watchOS 2 is now GM.)With WatchKit 1.x I used CoreText to render text into a CGContext (to place labels on graphs). As of watchOS 2, CoreText no longer appears to be available. I filed a radar (22596950) but in the mean time, what's the recommended way to render text into a CGContext on the watch?
I would need some advice here.I have an app on the appstore for some time.Let's call it app Basic. Which sells for 1.I will introduce soon a more powerful version, with Watch support.Its name will be app Pro, with a specific icon. It will sell for 2.I considered several options for sale, notring that I want to keep both versions in appStore.Option 1:Have the 2 versions sold independantly.Great for the one who buys directly Pro or just wants Basic because he has no need fopr watch app.Problem: user who paid 1. for basic will have to pay 2 for Pro when he does not need Basic anymore. At the end, that means that Pro costs 2. or 3. depending how you purchased.Option2-> Is there a way to discount on the appstore (I mean, no specific feature in the apps) if user already bought basic ?Option 3:Sell Pro through IAP of 1 in Basic-> But that will force user to buy first Basic, then IAP for Pro to install a second app.I am certainly not the first to have a dual version scheme. A
So I have the iOS 10 beta but still haven't seen the iOS 10 beta 2 .. what's going on?