Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,348 results found

Post

Replies

Boosts

Views

Activity

Learn to Code 2 > Variables > Three Gems, Four Switches
My while loop continues execution after reaching gemsCollected = 3 if I use OR logical operator (||) and stops execution if I use AND logical operator (&&). IMHO it should be the other way around, right? var gemsCollected = 0 var switchesToggled = 0 while gemsCollected < 3 || switchesToggled < 4 { moveForward() if gemsCollected < 3 && isOnGem { collectGem() gemsCollected = gemsCollected + 1 } else if switchesToggled < 4 && isOnClosedSwitch { toggleSwitch() switchesToggled = switchesToggled + 1 } else if isBlocked && !isBlockedRight { turnRight() } else if isBlocked && !isBlockedLeft { turnLeft() } }
1
0
1.3k
Jul ’23
Two-Factor Authentication Loop?
So I have the following devices:- MacBook (10.12 BETA 2)- iPhone (10 BETA 2)- iPad (10 BETA 2)- Apple Watch (3.0 BETA 2)Two-factor authentication is enabled for the Auto-Unlock with Watch feature.Everything was working fine. Then I've decided to login on iCloud in my work computer (MacBook, 10.11). iPhone went crazy with the iCloud security stuff, so now it seems it has remained in a mid-term state.So my iPhone is a trusted-device still, but for some reason, trusted features are disabled (Keychain, HomeKit). Trying to login on iCloud in the phone requires password AND a security code, which shouldn't be required as the phone is still a trusted iCloud device. However I can't seem to type the security code on the phone since the keyboard does not appear.Crazy scenario, I reckon, but it might happen for other users as well, so it's good to point it out.I've already filled a bug report, but this post might be helpful too.
0
0
967
Jul ’16
El capitan Beta 2
I am unable to download El Cap Beta 2, as it says my code has already been redeemed.* Updates in the App Store only shows the previous Beta 1, that wouldn't install at all (El Cap doesn't my hard disk in beta 1, this was similar in yos beta 1).* I need to do a clean install of beta 2 (as beta 1 wouldn't install, i can't simply update it) Does anyone know a way around this, some way to remove the previous purchase of beta 1, or reset my redeem code some other way?Any ideas would be awesome.
7
0
3.2k
Jun ’15
Merge Two iPhone Apps Into One Yet Two Teams
We have two iPhone/iPad apps. We most likely will merge them into one app. Let's say two teams from different companies that were working on the separate apps will work on the single merged app. From an inner-app architecture point of view and from the above multi-team context, what's a good way to merge the two apps together? (KMT, thank you for your feedback. I totally agree that the question was not clear.)
1
0
723
Aug ’16
how to have 2 functions with one button
I was wondering how i could have 2 functions work from 1 button. One would happen on the first time you click and second will happen the second time you click. in java something like this: if button pressed{ // Code if button pressed{ // Code } } or at least that's how I was taught in java. so I'm wondering how I could do that in swift. Thanks!
1
0
861
Feb ’22
How do I compare two MKPlacemarks?
I compare two MKPlacemarks that are each created from a CLPlacemark acquired from CLGeocoder.reverseGeocodeLocation(_:) of the same address, but when I compare those two MKPlacemarks with == they don't equal. Is there a way of determining whether those two placemarks refer to the same location? Are there unique identifers on MKPlacemarks that I could use to determine if those two placemarks are of the same location, such as the name or the title properities of MKPlacemark?
4
0
1.5k
Mar ’18
Reply to Autorotation not working
I have identified a related issue. The shouldAutorotate function doesn't fire on iOS9 beta 5 when running on the iPad Air 2 128 GB.Thus far I have tested the following code on iOS9 Beta 5 on an iPhone 4S, iPhone 6, iPad 2, iPad3, and an iPad Air 2. The code executes on rotation on every device except the ipad air 2. On the the iPad Air 2 the code is completely ignored.import UIKit class ViewController: UIViewController { override func shouldAutorotate() -> Bool { print(ShouldAutorotate) return false } }
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Communication between two process in macOS.
We have 2 process in our macOS application Daemon process written in golang Swift application Currently, the communication between both the process are done with Unix domain socket. However, we are seeing significant amount of delay when large amount of data communication. We are looking for some faster communication. Probably XPC is the answer. But not sure how to use XPC between two process which are written in different language. Any sample code would be great help.
1
0
1.3k
Jun ’23
Started seeing this issue happen frequently with Call Directory extension from iOS 15 onwards: Domain=com.apple.CallKit.error.calldirectorymanager Code=2 "(null)".
Hi, We have an app that manages incoming and outgoing calls for users. As part of that, the app needs to frequently keep updating the list of blocked numbers in the Call Directory Extension. The functionality was working quite well till iOS 14, however, since we started testing on iOS 15, we're seeing a lot of these errors when we try to reload the Call Directory extension: Domain=com.apple.CallKit.error.calldirectorymanager Code=2 (null) The documentation says this error code means: The call directory manager was interrupted while loading the app extension. We're not sure why it was interrupted and was it interrupted by the OS or by something that we did from our app. Please let us know when this error code might happen and if there's anything we can do from the app side to fix it.
1
0
933
Nov ’21
Learn to Code 2 > Variables > Three Gems, Four Switches
My while loop continues execution after reaching gemsCollected = 3 if I use OR logical operator (||) and stops execution if I use AND logical operator (&&). IMHO it should be the other way around, right? var gemsCollected = 0 var switchesToggled = 0 while gemsCollected < 3 || switchesToggled < 4 { moveForward() if gemsCollected < 3 && isOnGem { collectGem() gemsCollected = gemsCollected + 1 } else if switchesToggled < 4 && isOnClosedSwitch { toggleSwitch() switchesToggled = switchesToggled + 1 } else if isBlocked && !isBlockedRight { turnRight() } else if isBlocked && !isBlockedLeft { turnLeft() } }
Replies
1
Boosts
0
Views
1.3k
Activity
Jul ’23
Two-Factor Authentication Loop?
So I have the following devices:- MacBook (10.12 BETA 2)- iPhone (10 BETA 2)- iPad (10 BETA 2)- Apple Watch (3.0 BETA 2)Two-factor authentication is enabled for the Auto-Unlock with Watch feature.Everything was working fine. Then I've decided to login on iCloud in my work computer (MacBook, 10.11). iPhone went crazy with the iCloud security stuff, so now it seems it has remained in a mid-term state.So my iPhone is a trusted-device still, but for some reason, trusted features are disabled (Keychain, HomeKit). Trying to login on iCloud in the phone requires password AND a security code, which shouldn't be required as the phone is still a trusted iCloud device. However I can't seem to type the security code on the phone since the keyboard does not appear.Crazy scenario, I reckon, but it might happen for other users as well, so it's good to point it out.I've already filled a bug report, but this post might be helpful too.
Replies
0
Boosts
0
Views
967
Activity
Jul ’16
El capitan Beta 2
I am unable to download El Cap Beta 2, as it says my code has already been redeemed.* Updates in the App Store only shows the previous Beta 1, that wouldn't install at all (El Cap doesn't my hard disk in beta 1, this was similar in yos beta 1).* I need to do a clean install of beta 2 (as beta 1 wouldn't install, i can't simply update it) Does anyone know a way around this, some way to remove the previous purchase of beta 1, or reset my redeem code some other way?Any ideas would be awesome.
Replies
7
Boosts
0
Views
3.2k
Activity
Jun ’15
Reply to AppDelegate Error
Where does the error happens exactly ?What do you mean by / 2 in the code for the AppDelegate.swift / 2 ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’16
Merge Two iPhone Apps Into One Yet Two Teams
We have two iPhone/iPad apps. We most likely will merge them into one app. Let's say two teams from different companies that were working on the separate apps will work on the single merged app. From an inner-app architecture point of view and from the above multi-team context, what's a good way to merge the two apps together? (KMT, thank you for your feedback. I totally agree that the question was not clear.)
Replies
1
Boosts
0
Views
723
Activity
Aug ’16
how to have 2 functions with one button
I was wondering how i could have 2 functions work from 1 button. One would happen on the first time you click and second will happen the second time you click. in java something like this: if button pressed{ // Code if button pressed{ // Code } } or at least that's how I was taught in java. so I'm wondering how I could do that in swift. Thanks!
Replies
1
Boosts
0
Views
861
Activity
Feb ’22
Update on Airplay 2
Hi,What is the status on Airplay 2. Would be handy to have an small update on when multiroom and Airplay 2 is expected to be available on the iOS beta.Also a window in which Airplay 2 would be launched would be great.
Replies
0
Boosts
0
Views
422
Activity
Feb ’18
How do I compare two MKPlacemarks?
I compare two MKPlacemarks that are each created from a CLPlacemark acquired from CLGeocoder.reverseGeocodeLocation(_:) of the same address, but when I compare those two MKPlacemarks with == they don't equal. Is there a way of determining whether those two placemarks refer to the same location? Are there unique identifers on MKPlacemarks that I could use to determine if those two placemarks are of the same location, such as the name or the title properities of MKPlacemark?
Replies
4
Boosts
0
Views
1.5k
Activity
Mar ’18
Swift 2 is compatible with Swift 1.2?
HelloI have a app created using Swift 1.2, when the Swift 2 is released my app can be updated to Swift 2? I will need to change something in my code?
Replies
7
Boosts
0
Views
1.2k
Activity
Jul ’15
Reply to Autorotation not working
I have identified a related issue. The shouldAutorotate function doesn't fire on iOS9 beta 5 when running on the iPad Air 2 128 GB.Thus far I have tested the following code on iOS9 Beta 5 on an iPhone 4S, iPhone 6, iPad 2, iPad3, and an iPad Air 2. The code executes on rotation on every device except the ipad air 2. On the the iPad Air 2 the code is completely ignored.import UIKit class ViewController: UIViewController { override func shouldAutorotate() -> Bool { print(ShouldAutorotate) return false } }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15
Communication between two process in macOS.
We have 2 process in our macOS application Daemon process written in golang Swift application Currently, the communication between both the process are done with Unix domain socket. However, we are seeing significant amount of delay when large amount of data communication. We are looking for some faster communication. Probably XPC is the answer. But not sure how to use XPC between two process which are written in different language. Any sample code would be great help.
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’23
Started seeing this issue happen frequently with Call Directory extension from iOS 15 onwards: Domain=com.apple.CallKit.error.calldirectorymanager Code=2 "(null)".
Hi, We have an app that manages incoming and outgoing calls for users. As part of that, the app needs to frequently keep updating the list of blocked numbers in the Call Directory Extension. The functionality was working quite well till iOS 14, however, since we started testing on iOS 15, we're seeing a lot of these errors when we try to reload the Call Directory extension: Domain=com.apple.CallKit.error.calldirectorymanager Code=2 (null) The documentation says this error code means: The call directory manager was interrupted while loading the app extension. We're not sure why it was interrupted and was it interrupted by the OS or by something that we did from our app. Please let us know when this error code might happen and if there's anything we can do from the app side to fix it.
Replies
1
Boosts
0
Views
933
Activity
Nov ’21
cannot login with two factor authentication
I cannot login to my developer account with Safari and iPhone, the 2-factor code appears for less than a second on my iPhone and disappears before I can log in, also the screen to input the code does not appear on my Safari MacBookPro.Had similar problems with 2-factor login for Apple-ID in the past, these problems seem to have reappeared.
Replies
0
Boosts
0
Views
432
Activity
Jun ’20
HTTP/2 and HLS
Does HLS take advantage of the features provided by HTTP/2 standartAll i found on the internet are articles about DASH + HTTP/2
Replies
1
Boosts
0
Views
1.5k
Activity
Mar ’17
Reply to endpoint security app crash
This sounded really familiar. I asked the same thing 2 years ago on this thread. Code 2
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23