Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,370 results found

Post

Replies

Boosts

Views

Activity

Airplay 2 implementation on Linux
Hi all, I am looking for the information about the Airplay2 (client) implementation on linux but there aren't much info about it. As far as I searched on the internet, it seems possible to implement it on the linux by Swift which is cross platform supported solution, but I wonder what the specific procedure for developing Airplay 2 on the linux . Is Apple providing Airplay2 source code in Swift form? Is there any detail guide about this? if there's is any person who have experience about it, please share the information. Thanks.
0
0
1.4k
Oct ’21
Reply to Function not returning values if in a separate file
There are two problems here.1. You have 2 variables called 'scalaRiduz'. They may look the same, but they are completely different. You could have written:var scalaRiduz1111:Double = 0 … func scalaTrafila (…) { var scalaRiduz2222:[Double] = [0, 1, 2] … }Why? Because a 'var' statement always declares a new variable. In your existing code, the 'scalaRiduz' inside the function hides the 'scalaRiduz' outside the function. But they're still different variables.2. This isn't your real code. In your main program, your 'scalaRiduz' isn't even array — it has type Double, not [Double].Here's what I think happened. You had code like this, in a single file:var scalaRiduz:[Double] = [] func scalaTrafila (…) { scalaRiduz:[Double] = [0, 1, 2] // <-- Note that there is NO var } print (scalaRiduz[0]) // prints 0Then you split it into 2 files:var scalaRiduz:[Double] = [0] scalaTrafila () print (scalaRiduz[0])func scalaTrafila () { scalaRiduz:[D
Topic: Programming Languages SubTopic: Swift Tags:
May ’16
Learn to code
Hello Developers, I started learning how to code using Swift PlayGround on my iPad Pro. But in some levels , you know, there are no hints to anything to help you solve problems. Do you have any idea on how to learn coding from the beginning cuz I feel lost sometimes and I’m in (learn to code 2) level and I didn’t see how to take advantage of using what I’ve learned on an app, I’m not planning to develop a Game, although coding looks like a game to me ☺️, so can you help me guys on how and where to learn good, and what do you think of the Swift Playground as a start or is there a better way. !! thanks
1
0
665
Feb ’22
Regex code from WWDC sample code not working
If I past the samele code import RegexBuilder let fieldSeparator = /s{2,}|t/ let transactionMatcher = Regex { /CREDIT|DEBIT/ fieldSeparator One(.date(.numeric, locale: Locale(identifier: en_US), timeZone: .gmt)) fieldSeparator OneOrMore { NegativeLookahead { fieldSeparator } CharacterClass.any } fieldSeparator One(.localizedCurrency(code: USD).locale(Locale(identifier: en_US))) } It does not like the OneOrMore with the negative look ahead. Is there an updated example of this code from WWDC?
1
0
1.3k
Jun ’22
Swift 2 REPL
HiWhere can I find the swift 2 REPL? I'm now running Mac OSX v10.11 with XCode 7 installed and running, but when I use the swift command in Terminal it tells me its using swift 1.2.Thanks in advance,Rugen Heidbuchel
1
0
416
Jun ’15
CloudKit and Swift 2
I am trying to simultaiously learn iOS, Swift 2, x-code, and how to use CloudKit (yeah, unlikely). This is frustrating due to lack of Swift 2.0 examples provided by Apple and the fact that there's a lot of out-of-date info on the web. I have this code trying to get data out of the Cloud. Lines 40 & 41 throw consecutive statements on a line must be separated by ';' I don't understand the reason. I suspect I am conflating two different ways of using CloudKit in trying to hack something together from various examples. I can get records out from iCloud, but I am struggling to understand how to get data out, that is, what's in values={ . . . }}> as shown in output at line 38.If someone could point me in the direction of getting ICloudKit to work, I'd be greatful.import Foundation import CloudKit protocol CloudKitDelegate { func errorUpdating(error: NSError) func modelUpdated() } class MovieDataBase { var container : CKContainer var publicDB : CKDatabase let privateDB : CK
2
0
708
Oct ’15
watches 2 downgrade
it appears to be so many bugs on watchos 2 first my contacts are gone. Now sending heartbeat is totally wrong even receiving it. It beats so fast even if your last measure is 60. Even when you receive heartbeat is viberate so fast. Any solution? I'm regretting this upgrade
9
0
2.6k
Jun ’15
Reply to UIAlertController UIAlertAction
the alert action is displayed briefly then it disappears before the user has time to enter anything into the 2 text fields and before the OK button is pressed.I embedded your code in an @IBAction method, and I couldn't have find a behavior as such.The problem may very probably hide somewhere in the lines you have not shown yet.At least two lines of your code: foundLatitude.text = stringLatitude foundLongitude.text = stringLongitudedo not work as expected. (Or I may be mistaking your expectation for these two lines.)They should be in the action handler of OK.Generally, you should not write any code after calling presentViewController:animated:completion: .
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’15
two finger tap - trackpad
I just installed the GM for El Capitan, and it appers that the two finger tap (not click) is no longer working on the external trackpad? I used to be able to just two finger touch the track pad and it would bring up the context menu. Now I have to actually click the trackpad with 2 fingers?
4
0
926
Sep ’15
How do I run two ViewController simultaneously?
I'm trying to use ARWorldTrackingConfiguration and ARBodyTrackingConfiguration together. ARConfiguration here it says, a session can run only one configuration at a time. So, I made two ViewControllers that switches each ViewController through buttons but I can't run the two ViewControllers at the same. Is there any way to run two ViewControllers simultaneously or switching ViewControllers automatically?
1
0
606
Apr ’22
Airplay 2 implementation on Linux
Hi all, I am looking for the information about the Airplay2 (client) implementation on linux but there aren't much info about it. As far as I searched on the internet, it seems possible to implement it on the linux by Swift which is cross platform supported solution, but I wonder what the specific procedure for developing Airplay 2 on the linux . Is Apple providing Airplay2 source code in Swift form? Is there any detail guide about this? if there's is any person who have experience about it, please share the information. Thanks.
Replies
0
Boosts
0
Views
1.4k
Activity
Oct ’21
Reply to Function not returning values if in a separate file
There are two problems here.1. You have 2 variables called 'scalaRiduz'. They may look the same, but they are completely different. You could have written:var scalaRiduz1111:Double = 0 … func scalaTrafila (…) { var scalaRiduz2222:[Double] = [0, 1, 2] … }Why? Because a 'var' statement always declares a new variable. In your existing code, the 'scalaRiduz' inside the function hides the 'scalaRiduz' outside the function. But they're still different variables.2. This isn't your real code. In your main program, your 'scalaRiduz' isn't even array — it has type Double, not [Double].Here's what I think happened. You had code like this, in a single file:var scalaRiduz:[Double] = [] func scalaTrafila (…) { scalaRiduz:[Double] = [0, 1, 2] // <-- Note that there is NO var } print (scalaRiduz[0]) // prints 0Then you split it into 2 files:var scalaRiduz:[Double] = [0] scalaTrafila () print (scalaRiduz[0])func scalaTrafila () { scalaRiduz:[D
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’16
Learn to code
Hello Developers, I started learning how to code using Swift PlayGround on my iPad Pro. But in some levels , you know, there are no hints to anything to help you solve problems. Do you have any idea on how to learn coding from the beginning cuz I feel lost sometimes and I’m in (learn to code 2) level and I didn’t see how to take advantage of using what I’ve learned on an app, I’m not planning to develop a Game, although coding looks like a game to me ☺️, so can you help me guys on how and where to learn good, and what do you think of the Swift Playground as a start or is there a better way. !! thanks
Replies
1
Boosts
0
Views
665
Activity
Feb ’22
Regex code from WWDC sample code not working
If I past the samele code import RegexBuilder let fieldSeparator = /s{2,}|t/ let transactionMatcher = Regex { /CREDIT|DEBIT/ fieldSeparator One(.date(.numeric, locale: Locale(identifier: en_US), timeZone: .gmt)) fieldSeparator OneOrMore { NegativeLookahead { fieldSeparator } CharacterClass.any } fieldSeparator One(.localizedCurrency(code: USD).locale(Locale(identifier: en_US))) } It does not like the OneOrMore with the negative look ahead. Is there an updated example of this code from WWDC?
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’22
Swift 2 REPL
HiWhere can I find the swift 2 REPL? I'm now running Mac OSX v10.11 with XCode 7 installed and running, but when I use the swift command in Terminal it tells me its using swift 1.2.Thanks in advance,Rugen Heidbuchel
Replies
1
Boosts
0
Views
416
Activity
Jun ’15
Sphero Playgrounds 2 Randomise Game
Hi, I’ve been on Sphero Swift Playgrounds 2; Randomise Game for a while and I need help. This is my code; func pickNextGesture(availableGestures:[Gesture]) -> Gesture { randomNumber(min: 1, max: availableGesture.count) return .tap return .toss return .spin return .shake
Replies
0
Boosts
0
Views
513
Activity
Feb ’22
CloudKit and Swift 2
I am trying to simultaiously learn iOS, Swift 2, x-code, and how to use CloudKit (yeah, unlikely). This is frustrating due to lack of Swift 2.0 examples provided by Apple and the fact that there's a lot of out-of-date info on the web. I have this code trying to get data out of the Cloud. Lines 40 & 41 throw consecutive statements on a line must be separated by ';' I don't understand the reason. I suspect I am conflating two different ways of using CloudKit in trying to hack something together from various examples. I can get records out from iCloud, but I am struggling to understand how to get data out, that is, what's in values={ . . . }}> as shown in output at line 38.If someone could point me in the direction of getting ICloudKit to work, I'd be greatful.import Foundation import CloudKit protocol CloudKitDelegate { func errorUpdating(error: NSError) func modelUpdated() } class MovieDataBase { var container : CKContainer var publicDB : CKDatabase let privateDB : CK
Replies
2
Boosts
0
Views
708
Activity
Oct ’15
watches 2 downgrade
it appears to be so many bugs on watchos 2 first my contacts are gone. Now sending heartbeat is totally wrong even receiving it. It beats so fast even if your last measure is 60. Even when you receive heartbeat is viberate so fast. Any solution? I'm regretting this upgrade
Replies
9
Boosts
0
Views
2.6k
Activity
Jun ’15
I uploaded two IPA files two days ago and they have not been complete yet, any idea?
I uploaded two IPA files two days ago and they have not been complete yet, any idea?
Replies
0
Boosts
0
Views
284
Activity
May ’20
Reply to UIAlertController UIAlertAction
the alert action is displayed briefly then it disappears before the user has time to enter anything into the 2 text fields and before the OK button is pressed.I embedded your code in an @IBAction method, and I couldn't have find a behavior as such.The problem may very probably hide somewhere in the lines you have not shown yet.At least two lines of your code: foundLatitude.text = stringLatitude foundLongitude.text = stringLongitudedo not work as expected. (Or I may be mistaking your expectation for these two lines.)They should be in the action handler of OK.Generally, you should not write any code after calling presentViewController:animated:completion: .
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’15
Metal 2 game template?
The XCode beta has a Metal game template -- is that Metal or Metal 2? What are the big differences programming wise between the two?ThanksBob
Replies
1
Boosts
0
Views
928
Activity
Aug ’17
two finger tap - trackpad
I just installed the GM for El Capitan, and it appers that the two finger tap (not click) is no longer working on the external trackpad? I used to be able to just two finger touch the track pad and it would bring up the context menu. Now I have to actually click the trackpad with 2 fingers?
Replies
4
Boosts
0
Views
926
Activity
Sep ’15
Reply to Need a game app source code
See your other two same posts.How can I get my source code from Apple?Need missing app source code
Topic: Graphics & Games SubTopic: GameKit Tags:
Replies
Boosts
Views
Activity
Nov ’17
Reply to Displaying alerts shows compiler warnings
There is no UICollectionViewCall in my code, any suggestion what it can be or how to resolve? You can use the above code to replicate the issue. Error #2, you were right. thanks
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
How do I run two ViewController simultaneously?
I'm trying to use ARWorldTrackingConfiguration and ARBodyTrackingConfiguration together. ARConfiguration here it says, a session can run only one configuration at a time. So, I made two ViewControllers that switches each ViewController through buttons but I can't run the two ViewControllers at the same. Is there any way to run two ViewControllers simultaneously or switching ViewControllers automatically?
Replies
1
Boosts
0
Views
606
Activity
Apr ’22