Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,591 results found

Post

Replies

Boosts

Views

Activity

Reply to Rookie Question about SpriteKit Wizard in Swift
I don't know the answer for sure, but the code as originally written is slightly more subtle than your re-writes. There are 3 possible cases:1. a SKView2. a NSView that is not a SKView3. nilThe original code will crash deliberately on case 2 (which is a mis-configured storyboard, in effect), and branch on the difference between 1 and 3. Your 1st rewrite branches on 2 and 3, and your second rewrite crashes on 2 and 3.In any actual use case, where you have direct control over the storyboard, you can probably customize the code to require a top-level SKView (or subclass), in which case your second rewrite may well be sufficient, and less confusing to future readers of the code.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’17
Big Sur beta 2
Noticed that beta 2 is out, but my DTK iMac is not picking up an update. Is that: (a) because I need to install provisioning profile and then download from developer.apple.com (at least initially) as per normal betas or (b) because beta 2 isn't available to Apple Silicon yet, and I just be patient and wait for an update to appear? Regards, D.
1
0
627
Jul ’20
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
217
Jul ’16
How do you convert and audio file from two (2) channels (stereo) to one channel (1)?
Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app.The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem to be a way to change that.For various reasons, I need the audio format to be only one channel. I was hoping there would be something on iOS to convert the audio file from stereo (two channels) to mono (one channel)Right now, I'm investigating if this is possible using AVAudioEngine and other various related classes. I'm not sure if it's possible and it seems very complicated at the moment.
3
0
2.7k
Feb ’17
Reply to Subscription on digital item warranting physical product(s)
You are not 'in between' two rules, you are violating one or the other because you are conflating two products - the physical good and the digital good. If you are giving away the digital good then fine - that is, if you issue 10 $0 value QR codes to users who don't subscribe then you are not unlocking code using the subscription and there is no problem.
Mar ’18
Two height constraints?
After I update the height of my view I get the following error message in the console: 2022-03-23 18:38:35.093236+0100 Moiree[10522:931302] [Layout] Unable to simultaneously satisfy constraints: ( , ) Will attempt to recover by breaking constraint How can there be two different height constraints? I set the height with self.heightAnchor.constraint(equalToConstant: newValue) Shouldn't that just update the height constraint that is already there? Thanks and regards, Sebastian
1
0
595
Mar ’22
RECOLLECTING CODE FROM UPLOAD????
Hello All, I used to own an app named LOLIIPOP, and am in the process of transferring it to my new apple account. I am having two problems.... How do I transfer the source code and binary to my new apple account? My developers have an old code, so I need to send them the LAST code they uploaded to the App Store. How do I do that as well??? Please any help!!! Thanks, Mr. LM
1
0
163
Aug ’25
Reply to UIView with draw function override always at wrong place on screen
But when I comment out the draw function and only change its background color, it shows up where I want it to be. I have exactly the same wrong behavior, when I add the view in code, and IB isn't involved at all.For example: colorWheel.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height / 2)Nothing change when I have my code in the draw function, with out my code the view shows up in the center of the screen.
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’17
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
721
Sep ’15
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
813
Dec ’19
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
Reply to Rookie Question about SpriteKit Wizard in Swift
I don't know the answer for sure, but the code as originally written is slightly more subtle than your re-writes. There are 3 possible cases:1. a SKView2. a NSView that is not a SKView3. nilThe original code will crash deliberately on case 2 (which is a mis-configured storyboard, in effect), and branch on the difference between 1 and 3. Your 1st rewrite branches on 2 and 3, and your second rewrite crashes on 2 and 3.In any actual use case, where you have direct control over the storyboard, you can probably customize the code to require a top-level SKView (or subclass), in which case your second rewrite may well be sufficient, and less confusing to future readers of the code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’17
Big Sur beta 2
Noticed that beta 2 is out, but my DTK iMac is not picking up an update. Is that: (a) because I need to install provisioning profile and then download from developer.apple.com (at least initially) as per normal betas or (b) because beta 2 isn't available to Apple Silicon yet, and I just be patient and wait for an update to appear? Regards, D.
Replies
1
Boosts
0
Views
627
Activity
Jul ’20
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?
Replies
0
Boosts
0
Views
217
Activity
Jul ’16
How do you convert and audio file from two (2) channels (stereo) to one channel (1)?
Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app.The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem to be a way to change that.For various reasons, I need the audio format to be only one channel. I was hoping there would be something on iOS to convert the audio file from stereo (two channels) to mono (one channel)Right now, I'm investigating if this is possible using AVAudioEngine and other various related classes. I'm not sure if it's possible and it seems very complicated at the moment.
Replies
3
Boosts
0
Views
2.7k
Activity
Feb ’17
Reply to Subscription on digital item warranting physical product(s)
You are not 'in between' two rules, you are violating one or the other because you are conflating two products - the physical good and the digital good. If you are giving away the digital good then fine - that is, if you issue 10 $0 value QR codes to users who don't subscribe then you are not unlocking code using the subscription and there is no problem.
Replies
Boosts
Views
Activity
Mar ’18
Two height constraints?
After I update the height of my view I get the following error message in the console: 2022-03-23 18:38:35.093236+0100 Moiree[10522:931302] [Layout] Unable to simultaneously satisfy constraints: ( , ) Will attempt to recover by breaking constraint How can there be two different height constraints? I set the height with self.heightAnchor.constraint(equalToConstant: newValue) Shouldn't that just update the height constraint that is already there? Thanks and regards, Sebastian
Replies
1
Boosts
0
Views
595
Activity
Mar ’22
RECOLLECTING CODE FROM UPLOAD????
Hello All, I used to own an app named LOLIIPOP, and am in the process of transferring it to my new apple account. I am having two problems.... How do I transfer the source code and binary to my new apple account? My developers have an old code, so I need to send them the LAST code they uploaded to the App Store. How do I do that as well??? Please any help!!! Thanks, Mr. LM
Replies
1
Boosts
0
Views
163
Activity
Aug ’25
Reply to UIView with draw function override always at wrong place on screen
But when I comment out the draw function and only change its background color, it shows up where I want it to be. I have exactly the same wrong behavior, when I add the view in code, and IB isn't involved at all.For example: colorWheel.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height / 2)Nothing change when I have my code in the draw function, with out my code the view shows up in the center of the screen.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’17
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?
Replies
3
Boosts
0
Views
721
Activity
Sep ’15
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
Replies
2
Boosts
0
Views
813
Activity
Dec ’19
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?
Replies
5
Boosts
0
Views
12k
Activity
Oct ’19