Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

163,106 results found

Post

Replies

Boosts

Views

Activity

WatchOS 2 beta broken?
Has anyone had any luck converting existing watch apps to the new watchOS 2?Currently even the simplest apps with 2 or 3 images seem to be overwhelmed and just never loads on the watch.Thus far I only have been able to get very minor functionality going.Any feedback would be greatly appriciated.
3
0
555
Jun ’15
Comparing two uiTextFields
Dears,How can I compare if the content of two uiTextFields are different to empty?I was tryting to do something like this but I got the following error: Comparing non-optional value of type 'String' to nil always returns trueoverride func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { self.view.endEditing(true) let apresentacao: String = tfApresentacao.text! let corte: String = tfCorte.text! if apresentacao != nil && corte != nil { calcJornadaTrabalhada() lbEvento.isHidden = false lbTempo.isHidden = false } }Thanks
2
0
763
Oct ’18
Installing beta 2?
I clicked on the update for b2, which took me to the iTunes page to redeem the code, which I did.A few minutes later it brought the installer up. I quit out of the installer as I was in the midst of other work, but when I went back to install the update, it just reinstalled beta1.When I go back to the download page and reenter my download code, it says it's already been redeemed.Why is this so hard to download? I have 3 test machines I want to upgrade, and I'm at a loss of how to download the latest.Would love any insight.- wave
7
0
1.5k
Jul ’16
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
Getting two commands from control center
Hi,It seems that when I press next on control center when playing something, my code gets called on twice instead of once, using MPRemoteCommandCenter.The two calls:1. nextTrackCommand2. seekForwardCommandBoth functions are enabled, but it doesn't make sense that both get called upon tapping the next button once.I've linked bellow to an example project that demonstrates this issue.https://github.com/gerbil802/MPRemoteCommandCenterProblem
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1k
Sep ’18
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
116
Aug ’25
Reply to background moving
i changed my code now my code is this var background = SKSpriteNode() var background2 = SKSpriteNode() override func didMove(to view: SKView) { background = SKSpriteNode(imageNamed: New_Background) background.position = CGPoint(x: 0, y:0) background.zPosition = -2 / background.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) background2 = SKSpriteNode(imageNamed: New_Background) background2.position = CGPoint(x: 0, y:0) / background2.zPosition = -2 background2.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) self.addChild(background) self.addChild(background2) self.addChild(background3) vitesse = SKAction.repeatForever(SKAction.move(by: CGVector(dx: -self.frame.size.width, dy: 0), duration: 2)) background.run(vitesse) background2.run(vitesse) } override func update(_ currentTime: TimeInterval) { / if background.position.x <= -self.frame.size.width { background.position.x
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Mar ’18
IOS10 Beta 2
Hey there, I am running IOS10 Beta 1 on my iPhone 6 and I was reading somewhere that all I need to so is go into software update and just click download and install. So I went into software update and I saw the IOS 10 Beta 2 update. So I clicked download and install, the terms and conditions came up as normal, then it went into requesting update. About 20ish seconds later it comes up with Update failed with the options settings or close. Is there a way around this? Thanks!
2
0
727
Jul ’16
Apple watch 2 barometer
Does the apple watch 2 have a barometer? Does it use the iphone one if in range?
Replies
0
Boosts
0
Views
489
Activity
Nov ’16
WatchOS 2 beta broken?
Has anyone had any luck converting existing watch apps to the new watchOS 2?Currently even the simplest apps with 2 or 3 images seem to be overwhelmed and just never loads on the watch.Thus far I only have been able to get very minor functionality going.Any feedback would be greatly appriciated.
Replies
3
Boosts
0
Views
555
Activity
Jun ’15
Comparing two uiTextFields
Dears,How can I compare if the content of two uiTextFields are different to empty?I was tryting to do something like this but I got the following error: Comparing non-optional value of type 'String' to nil always returns trueoverride func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { self.view.endEditing(true) let apresentacao: String = tfApresentacao.text! let corte: String = tfCorte.text! if apresentacao != nil && corte != nil { calcJornadaTrabalhada() lbEvento.isHidden = false lbTempo.isHidden = false } }Thanks
Replies
2
Boosts
0
Views
763
Activity
Oct ’18
Installing beta 2?
I clicked on the update for b2, which took me to the iTunes page to redeem the code, which I did.A few minutes later it brought the installer up. I quit out of the installer as I was in the midst of other work, but when I went back to install the update, it just reinstalled beta1.When I go back to the download page and reenter my download code, it says it's already been redeemed.Why is this so hard to download? I have 3 test machines I want to upgrade, and I'm at a loss of how to download the latest.Would love any insight.- wave
Replies
7
Boosts
0
Views
1.5k
Activity
Jul ’16
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
Downgrade watchOS 2 to 1.0.1
Hi guys How can I downgrade watchOS 2 to 1.0.1 please
Replies
38
Boosts
0
Views
18k
Activity
Jun ’15
Two Variables on a Text Field
I want to know how to add two Variables to a text field
Replies
10
Boosts
0
Views
1.7k
Activity
Feb ’21
Getting two commands from control center
Hi,It seems that when I press next on control center when playing something, my code gets called on twice instead of once, using MPRemoteCommandCenter.The two calls:1. nextTrackCommand2. seekForwardCommandBoth functions are enabled, but it doesn't make sense that both get called upon tapping the next button once.I've linked bellow to an example project that demonstrates this issue.https://github.com/gerbil802/MPRemoteCommandCenterProblem
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
1k
Activity
Sep ’18
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
116
Activity
Aug ’25
Reply to How to solve the error: Type '()' cannot conform to 'View' when the problem is inside "if"
I don't understand your question. Please show the code. Of course you can call a func in an if: struct ContentView: View { let un = 1 let deux = 2 func one() -> some View { Text(One) } func two() -> some View { Text(Two) } var body: some View { if un > deux { one() } else { two() } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Does Metal 2 have geometry shaders?
I don't think they were supported in Metal, but are they now with Metal 2?
Replies
7
Boosts
0
Views
10k
Activity
Sep ’17
Watch series 2 question
what version of xcode supports watch series 2 development?
Replies
4
Boosts
0
Views
1.1k
Activity
Mar ’22
SF Symbols 2 crashes
SF Symbols 2 crashes on start. Just every time. Does anyone have this problem?
Topic: Design SubTopic: General Tags:
Replies
4
Boosts
0
Views
1.3k
Activity
Sep ’20
Reply to background moving
i changed my code now my code is this var background = SKSpriteNode() var background2 = SKSpriteNode() override func didMove(to view: SKView) { background = SKSpriteNode(imageNamed: New_Background) background.position = CGPoint(x: 0, y:0) background.zPosition = -2 / background.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) background2 = SKSpriteNode(imageNamed: New_Background) background2.position = CGPoint(x: 0, y:0) / background2.zPosition = -2 background2.size = CGSize(width:self.frame.size.width*2,height:self.frame.size.height*2) self.addChild(background) self.addChild(background2) self.addChild(background3) vitesse = SKAction.repeatForever(SKAction.move(by: CGVector(dx: -self.frame.size.width, dy: 0), duration: 2)) background.run(vitesse) background2.run(vitesse) } override func update(_ currentTime: TimeInterval) { / if background.position.x <= -self.frame.size.width { background.position.x
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Mar ’18
IOS10 Beta 2
Hey there, I am running IOS10 Beta 1 on my iPhone 6 and I was reading somewhere that all I need to so is go into software update and just click download and install. So I went into software update and I saw the IOS 10 Beta 2 update. So I clicked download and install, the terms and conditions came up as normal, then it went into requesting update. About 20ish seconds later it comes up with Update failed with the options settings or close. Is there a way around this? Thanks!
Replies
2
Boosts
0
Views
727
Activity
Jul ’16