Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,657 results found

Post

Replies

Boosts

Views

Activity

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
593
Jul ’25
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
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
433
Mar ’17
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
608
Apr ’22
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
Code Sign
Hi! I found a thread on the Apple forum about Code Sign/cdhashes, and there's a part where say Also note that you'll get different values for each architecture. The example above was run on Intel, and so you get the Intel architecture's cdhash. To get the Apple silicon one, specify the --arch argument In my code, I have a dictionary with the value of cdhashes of myapp in arm64 and I test this value, but I would like to know if there is a way to receive this cdhashes with the two architectures x86_64 and arm64 by the xcode code itself, just in case run on another architecture, keep working
0
0
256
Apr ’22
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
873
Nov ’15
Duns Approval Code
Hello, We have registered the application that we have developed. We were working on publishing the application on Apple Store but it requires duns approval code. We have been waiting for the approval code since 2 weeks. We would like to know any estimated date to receive the code and we also would like to know which e-mail will you send the code. Best Regards
Topic: Code Signing SubTopic: General Tags:
0
0
292
Dec ’20
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
696
Oct ’20
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
325
Sep ’15
In "Learning Programming 2", I can't use "world.place"
I'm trying the Connect and Solve course of Swift Playground. I can't use world.place to place bricks at positions (2, 2), (6, 2) (automatically disappear), but I can place bricks at positions (4, 2) in the same way. Two bricks must be placed overlapping in positions (2, 2) and (6, 2) to achieve the goal. Only when a brick is placed in position (4, 2) can the goal be achieved. The problem is that the bricks placed on (6, 2) and (2, 2) will disappear and cannot be placed successfully. The following is my code writing... let Block1 = Block() for i in 1 ... 2 { world.place(Block1, atColumn: 2, row: 2) } for i in 1 ... 2 { world.place(Block1, atColumn: 6, row: 2) } world.place(Block1, atColumn: 4, row: 2) func turnaround() { turnRight() turnRight() } func walk4() { for i in 1 ... 3 { moveForward() } } func collet() { for i in 1 ... 2 { m
0
0
1.1k
Feb ’26
Reply to Different versions of OpenGL es?
I just make a 3.0 context, if that fails with nil then fall back to a 2.0 context. For instance, iPad 2 will fail the 3 context and make the 2 context. This way you will not need to check on a device by device basis.OpenGL ES 3 is super set of 2. Migrating code is much easier. Mainly just name changes of functions and enumeration constants.I swapped my 2.0 code with the version 3 headers. I then saw the compiler errors and fixed them. After that for compatibility, the context has a property called API which you can check for 2 or 3 to make appropriate calls if there is enough of a major difference. So, I could check for API and use the old code if necessary -- compare with git for instance. All the shader code from ES 2 is compatible with ES 3. Much easier transition than from OpenGL ES 1 to 2.Hopefully, we get the older devices to drop out on iOS 10. Like the 5C and iPad 2 -- the performance difference is so gr
Topic: Graphics & Games SubTopic: General Tags:
Jun ’16
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
729
Apr ’16
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
593
Activity
Jul ’25
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
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
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
433
Activity
Mar ’17
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
608
Activity
Apr ’22
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
Code Sign
Hi! I found a thread on the Apple forum about Code Sign/cdhashes, and there's a part where say Also note that you'll get different values for each architecture. The example above was run on Intel, and so you get the Intel architecture's cdhash. To get the Apple silicon one, specify the --arch argument In my code, I have a dictionary with the value of cdhashes of myapp in arm64 and I test this value, but I would like to know if there is a way to receive this cdhashes with the two architectures x86_64 and arm64 by the xcode code itself, just in case run on another architecture, keep working
Replies
0
Boosts
0
Views
256
Activity
Apr ’22
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
873
Activity
Nov ’15
Duns Approval Code
Hello, We have registered the application that we have developed. We were working on publishing the application on Apple Store but it requires duns approval code. We have been waiting for the approval code since 2 weeks. We would like to know any estimated date to receive the code and we also would like to know which e-mail will you send the code. Best Regards
Topic: Code Signing SubTopic: General Tags:
Replies
0
Boosts
0
Views
292
Activity
Dec ’20
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
696
Activity
Oct ’20
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
396
Activity
Nov ’17
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
325
Activity
Sep ’15
In "Learning Programming 2", I can't use "world.place"
I'm trying the Connect and Solve course of Swift Playground. I can't use world.place to place bricks at positions (2, 2), (6, 2) (automatically disappear), but I can place bricks at positions (4, 2) in the same way. Two bricks must be placed overlapping in positions (2, 2) and (6, 2) to achieve the goal. Only when a brick is placed in position (4, 2) can the goal be achieved. The problem is that the bricks placed on (6, 2) and (2, 2) will disappear and cannot be placed successfully. The following is my code writing... let Block1 = Block() for i in 1 ... 2 { world.place(Block1, atColumn: 2, row: 2) } for i in 1 ... 2 { world.place(Block1, atColumn: 6, row: 2) } world.place(Block1, atColumn: 4, row: 2) func turnaround() { turnRight() turnRight() } func walk4() { for i in 1 ... 3 { moveForward() } } func collet() { for i in 1 ... 2 { m
Replies
0
Boosts
0
Views
1.1k
Activity
Feb ’26
Reply to Different versions of OpenGL es?
I just make a 3.0 context, if that fails with nil then fall back to a 2.0 context. For instance, iPad 2 will fail the 3 context and make the 2 context. This way you will not need to check on a device by device basis.OpenGL ES 3 is super set of 2. Migrating code is much easier. Mainly just name changes of functions and enumeration constants.I swapped my 2.0 code with the version 3 headers. I then saw the compiler errors and fixed them. After that for compatibility, the context has a property called API which you can check for 2 or 3 to make appropriate calls if there is enough of a major difference. So, I could check for API and use the old code if necessary -- compare with git for instance. All the shader code from ES 2 is compatible with ES 3. Much easier transition than from OpenGL ES 1 to 2.Hopefully, we get the older devices to drop out on iOS 10. Like the 5C and iPad 2 -- the performance difference is so gr
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’16
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
729
Activity
Apr ’16