Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,370 results found

Post

Replies

Boosts

Views

Activity

Can you detect a two-finger click?
I'd like to notice when a user clicks their Siri remote with two fingers on the trackpad instead of one. (A one-finger click increments; I'd like a two-finger click to decrement.) Is there a way to do this? A UITapGestureRecognizer with numberOfTouchesRequired set to 2 seems like the obvious solution, but it doesn't seem to be getting me anywhere.
3
0
864
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
Apple Configurator 2 - iPad air 2 requires itunes login when starting app
Hi at all,thats my issue: I have two iPad 4 and two iPad air 2 devices, both with iOS 10.2.1. I am managing the devices with Apple Conf. 2 and roll out the same profile on all devices. When starting ⚠ (not purchase, download, etc.) an app, itunes login is required at iPad air 2, not at iPad 4.Because we offer the devices to our library users to learn and live with them, I want a free use of apps. If a user wants to buy apps additionally, he may login with his own account. As I said, it all works with iPad 4, but not with iPad air 2. Any ideas?thx, Olli
0
0
426
Mar ’17
Inference Provider crashed with 2:5
I am trying to create a slightly different version of the content tagging code in the documentation: https://developer.apple.com/documentation/foundationmodels/systemlanguagemodel/usecase/contenttagging In the playground I am getting an Inference Provider crashed with 2:5 error. I have no idea what that means or how to address the error. Any assistance would be appreciated.
1
0
562
Jul ’25
Reply to Bad File Descriptor
More details hereIt appears to be when the download or writing the file is failing, its every time at the same Chunk :Jul 2 08:07:27 MacBook-Pro osinstallersetupd[611]: Got chunk 217 of 477Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=22 Invalid argumentJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 Input/output errorJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 Input/output errorJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’17
Two Watches, One iPhone
https://support.apple.com/en-us/HT205792 Clearly says: watchOS doesn't support wearing two watches at once There are many fitness apps that could benefit from information on both wrists. Juggling being my interest. Wearing two watches at once is an important developer requirement to capture the whole of the observables of many activities. Everyone has two wrists. Are there any fundamental reasons why one iPhone could not support two watches simultaneously, running an integrated fitness app?
1
0
677
Oct ’20
Issues with sharedSession.downloadTaskWithURL in Swift 2
I'm having am issue when trying to download a file via URL in Xcode Beta 5 and Swift 2 running iOS9Would really appreciate any help as I am going crazy trying to find out what it doesn't like about the code in swift2 ? The documentation says the method signature has not changed. I click on the code suggestion to get the completion handlers then it gives me errors. I took the code back into Swift 1.2 in Xcode 6.4 and it ran straight away 😕This code runs fine in iOS 8.4 Xcode 6.4let messageURL = NSURL(string: http:/ let sharedSession = NSURLSession.sharedSession() let downloadTask: NSURLSessionDownloadTask = sharedSession.downloadTaskWithURL(messageURL!, completionHandler: { (location: NSURL!, response: NSURLResponse!, error: NSError!) -> Void in var urlContents = NSString(contentsOfURL: location, encoding: NSUTF8StringEncoding, error: nil) println(response : (response)) println(urlContents) }) downloadTask.resume()I get a response and urlContents printed.The sam
2
0
1.2k
Aug ’15
arc4random - setting gap between two objects
Hi,I have two objects that get their Y axis randomised by arc4random_uniform. I want to be able to set a minimum gap of atleast 60px between the two objects where ever they randomise. I could randomise one object and then add 60px to the other objects but I wanted the gap between them to be completely random but no less than 60px.Below is my code that generates the two objects, but I am in need of a way to set a minimum gap of 60px between them-(void)GenerateLines { CGRect BlackTop = Black.superview.bounds; CGRect BlackBottom = BlackOne.superview.bounds; CGFloat topMargin = 80; CGFloat bottomMargin = 140; CGFloat RandomX, RandomY; RandomX = arc4random_uniform(500) + topMargin; CGFloat BlackYMax = BlackTop.size.height-topMargin-bottomMargin- Black.bounds.size.height/2; RandomY = arc4random_uniform(BlackYMax) + topMargin; Black.center = CGPointMake(300, RandomY); CGFloat TopMargin = 140; CGFloat BottomMargin = 80; RandomX = arc4random_uniform(500) + TopMargin; CGFloa
1
0
321
Sep ’15
Watch OS 2 requirement
Starting June 1, 2016, all new watchOS apps submitted to the App Store must be native apps built with the watchOS 2 SDK or later.Our iOS app contains both a Watch OS 2 component and a Watch OS 1 component. Users of Watch OS 2 find themselves using the Watch OS 2 version; users of Watch OS 1 find themselves using the Watch OS 1 version.I'm finding it hard to understand whether Apple's announcement (shown above) meansthat we should provide a Watch OS 2 app (which we do)or that we should remove the Watch OS 1 app (which we can, but it might inconvenience someone).Does anyone have any ideas?
2
0
720
Apr ’16
Reply to What does ^ do in swift
You have an infinite loop !when n == 2, n^2 = 0then, n^2 = 2then again n^2 = 0So you never get out of the while.Test the following code with a Run button connected to this IBAction: @IBAction func run(sender: AnyObject) { var n = 2 for i in 0..<10 { n = n^2 print(i) print(n) } }If you want exponentiation, you should write n *= 2
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’16
Can you detect a two-finger click?
I'd like to notice when a user clicks their Siri remote with two fingers on the trackpad instead of one. (A one-finger click increments; I'd like a two-finger click to decrement.) Is there a way to do this? A UITapGestureRecognizer with numberOfTouchesRequired set to 2 seems like the obvious solution, but it doesn't seem to be getting me anywhere.
Replies
3
Boosts
0
Views
864
Activity
Nov ’15
CFNetwork and HTTP/2
Hi,I understand that NSURLSession from iOS 9 automatically handles HTTP/2 without any user interaction.Is the same correct using CFNetwork (CFHTTP for example)? Or I need to handle the whole upgrade flow?Thanks, Israel
Replies
2
Boosts
0
Views
1.5k
Activity
Jul ’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?
Replies
4
Boosts
0
Views
926
Activity
Sep ’15
Apple Configurator 2 - iPad air 2 requires itunes login when starting app
Hi at all,thats my issue: I have two iPad 4 and two iPad air 2 devices, both with iOS 10.2.1. I am managing the devices with Apple Conf. 2 and roll out the same profile on all devices. When starting ⚠ (not purchase, download, etc.) an app, itunes login is required at iPad air 2, not at iPad 4.Because we offer the devices to our library users to learn and live with them, I want a free use of apps. If a user wants to buy apps additionally, he may login with his own account. As I said, it all works with iPad 4, but not with iPad air 2. Any ideas?thx, Olli
Replies
0
Boosts
0
Views
426
Activity
Mar ’17
Inference Provider crashed with 2:5
I am trying to create a slightly different version of the content tagging code in the documentation: https://developer.apple.com/documentation/foundationmodels/systemlanguagemodel/usecase/contenttagging In the playground I am getting an Inference Provider crashed with 2:5 error. I have no idea what that means or how to address the error. Any assistance would be appreciated.
Replies
1
Boosts
0
Views
562
Activity
Jul ’25
Reply to Objective C Iphone take photos both cameras simultaneously
You already have the AVCam-IO example software.Have you tried modifying that code to set up two capture sessions, one using the front camera and the other using the rear camera? Alternately, you should be able to take that same code and rearrange it so that it switches back and forth between the two capture sessions.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’18
1 App, 2 profiles
Hi, I will launch a new app. It will have 2 profiles, one for free, one paid.Is there any possibility to do that or I have to develop 2 different apps?Thanks,Pablo
Replies
1
Boosts
0
Views
394
Activity
Nov ’17
Reply to Bad File Descriptor
More details hereIt appears to be when the download or writing the file is failing, its every time at the same Chunk :Jul 2 08:07:27 MacBook-Pro osinstallersetupd[611]: Got chunk 217 of 477Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=22 Invalid argumentJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 Input/output errorJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 Input/output errorJul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’17
Two Watches, One iPhone
https://support.apple.com/en-us/HT205792 Clearly says: watchOS doesn't support wearing two watches at once There are many fitness apps that could benefit from information on both wrists. Juggling being my interest. Wearing two watches at once is an important developer requirement to capture the whole of the observables of many activities. Everyone has two wrists. Are there any fundamental reasons why one iPhone could not support two watches simultaneously, running an integrated fitness app?
Replies
1
Boosts
0
Views
677
Activity
Oct ’20
Issues with sharedSession.downloadTaskWithURL in Swift 2
I'm having am issue when trying to download a file via URL in Xcode Beta 5 and Swift 2 running iOS9Would really appreciate any help as I am going crazy trying to find out what it doesn't like about the code in swift2 ? The documentation says the method signature has not changed. I click on the code suggestion to get the completion handlers then it gives me errors. I took the code back into Swift 1.2 in Xcode 6.4 and it ran straight away 😕This code runs fine in iOS 8.4 Xcode 6.4let messageURL = NSURL(string: http:/ let sharedSession = NSURLSession.sharedSession() let downloadTask: NSURLSessionDownloadTask = sharedSession.downloadTaskWithURL(messageURL!, completionHandler: { (location: NSURL!, response: NSURLResponse!, error: NSError!) -> Void in var urlContents = NSString(contentsOfURL: location, encoding: NSUTF8StringEncoding, error: nil) println(response : (response)) println(urlContents) }) downloadTask.resume()I get a response and urlContents printed.The sam
Replies
2
Boosts
0
Views
1.2k
Activity
Aug ’15
Reply to What does ^ do in swift
Thanks man I wrote a code like this var n = 2 While n < 100 { n = n^2 } Print(n) And xcode blew up
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’16
arc4random - setting gap between two objects
Hi,I have two objects that get their Y axis randomised by arc4random_uniform. I want to be able to set a minimum gap of atleast 60px between the two objects where ever they randomise. I could randomise one object and then add 60px to the other objects but I wanted the gap between them to be completely random but no less than 60px.Below is my code that generates the two objects, but I am in need of a way to set a minimum gap of 60px between them-(void)GenerateLines { CGRect BlackTop = Black.superview.bounds; CGRect BlackBottom = BlackOne.superview.bounds; CGFloat topMargin = 80; CGFloat bottomMargin = 140; CGFloat RandomX, RandomY; RandomX = arc4random_uniform(500) + topMargin; CGFloat BlackYMax = BlackTop.size.height-topMargin-bottomMargin- Black.bounds.size.height/2; RandomY = arc4random_uniform(BlackYMax) + topMargin; Black.center = CGPointMake(300, RandomY); CGFloat TopMargin = 140; CGFloat BottomMargin = 80; RandomX = arc4random_uniform(500) + TopMargin; CGFloa
Replies
1
Boosts
0
Views
321
Activity
Sep ’15
Reply to Two factor verification problem.
Hey can I turn my 2 factor activation code back on.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’21
Watch OS 2 requirement
Starting June 1, 2016, all new watchOS apps submitted to the App Store must be native apps built with the watchOS 2 SDK or later.Our iOS app contains both a Watch OS 2 component and a Watch OS 1 component. Users of Watch OS 2 find themselves using the Watch OS 2 version; users of Watch OS 1 find themselves using the Watch OS 1 version.I'm finding it hard to understand whether Apple's announcement (shown above) meansthat we should provide a Watch OS 2 app (which we do)or that we should remove the Watch OS 1 app (which we can, but it might inconvenience someone).Does anyone have any ideas?
Replies
2
Boosts
0
Views
720
Activity
Apr ’16
Reply to What does ^ do in swift
You have an infinite loop !when n == 2, n^2 = 0then, n^2 = 2then again n^2 = 0So you never get out of the while.Test the following code with a Run button connected to this IBAction: @IBAction func run(sender: AnyObject) { var n = 2 for i in 0..<10 { n = n^2 print(i) print(n) } }If you want exponentiation, you should write n *= 2
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’16