Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,591 results found

Post

Replies

Boosts

Views

Activity

How to check xcode version in code
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?
5
0
12k
Oct ’19
Two versions of ViewController?
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
2
0
589
Oct ’17
can't install more than two of my apps to my iphone
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.
Topic: Code Signing SubTopic: General Tags:
1
0
227
Aug ’20
2 Back Buttons When Creating Multiple Views
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:
1
0
556
Jun ’21
Two different nodes/materials with two different SCNProgram's (OpenGL es)
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?
0
0
208
Jul ’16
Can't Find macOS 10.12 Beta 2
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?
6
0
847
Jul ’16
Bad Code
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
2
0
780
Dec ’19
No CoreText in watchOS 2
(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?
3
0
703
Sep ’15
Selling 2 versions of an app
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
6
0
896
Oct ’19