Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,591 results found

Post

Replies

Boosts

Views

Activity

Swift 2 closure with throw
Hello guys,While using Swift 2 I got one problem – how to throw inside closure of function. Example:// this func can't be changed and modifiedfunc httpRequest(param:String, completionHTTP:(result:String) -> Void){ completionHTTP(result:some result)}// this func can be changed and modifiedfunc myFunc() throws { httpRequest(param1) { (result) -> Void in throw NSError(domain: MyDomain, code: 0, userInfo: [NSLocalizedDescriptionKey: Error description]) }}myFunc - gives error of invalid conversion from thowing function to non-throwing functionHow can I call throw inside of closure of non-throwing func?
10
0
3.6k
Aug ’15
Two errors -- binary not optimized for iphone 5 (error 90096) and invalid code signing (error 90163) when submitting to iTunes
I have two issues when I upload to iTunes and I’m not sure if they are related to each other:ERROR ITMS- 90096: “Your binary is not optimized for iPhone 5 ……” This is weird because I have the correct splash screen included which is Default-568h@2x with the file size being 640 x 1136. Not sure why I’m getting this error. I've submitted several apps with this splash screen size and having had a problem in the past.ERROR ITMS- 90096: “Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning file. The bundle contains a key that is not included in the provi…… “beta-reports-active”. I know that this issue is being caused by the beta-reports-active tag. I’ve researched this issue but have not found anything that definitively solves this problem. For this building I’m using a production certificate and provisioning profile. I am attempting to upload the app for TestFlight App so I need to solve this problem.My devel
6
0
716
Feb ’16
What is the order of didMoveToWindow for two views?
What is the calling order of didMoveToWindow for two views after switching between two ViewControllers. In my project,we need get the property of view.window to prejucduce if the view is in the window,when one ViewController transform to another viewController。 We would like to know how this behavior is defined
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
751
Jun ’23
Reading from a file swift 2
I'm trying to read a file which exist with the below code in Swift 2. It seems to be failing. Appreciate any inputs:let someText = NSString(string:some text)let destinationPath = /users/johnt/myFile.txtvar filemgr = NSFileManager.defaultManager()if filemgr.fileExistsAtPath(destinationPath) { print(File exists) do { let readFile = try String(contentsOfFile: destinationPath, encoding: NSUTF8StringEncoding) // Throws this error// How do I read the file contents from here? print((readFile)) } catch let error as NSError { print(Error: (error.domain)) }} else { print(File does not exist) do { try someText.writeToFile(destinationPath, atomically: true, encoding: NSUTF8StringEncoding) } catch let error as NSError { print(Error: (error.domain)) }}
4
0
14k
Aug ’15
TextKit 2 and SwiftUI
Is it possible to use/draw a SwiftUI view in TextKit 2? The NSTextLayoutManagerDelegate seems to be built around returning a NSTextLayoutFragment. Since NSTextLayoutFragment is a class, I can't subclass it and use SwiftUI. I'd love to create my views using SwiftUI, since it's a lot faster than figuring out CGPaths, pixel perfect anti-aliasing, etc. Thanks!
0
0
1.3k
Sep ’21
Configurator 2 disabled Boot
After connecting my M1 to an Intel Mac where I started Configurator 2 the M1 boots in a loop, seeing the Apple Logo and the progressbar until half and then restart and same again in a endless loop. When I connected the M1 to the Intel Mac with Configurator 2 open I set the M1 in DFU mode and Configurator 2 said it need to download and install something ( 1 item ). After that it restarted and I saw the M1 in DFU mode again after Configurator 2 restarted. I didn't do any restore or revive. I closed Configurator 2 and restarted the M1. From thenon it is in a boot loop. I opened the recovery mode on the M1 and First aided the Macintosh HD drive and the DATA drive. Both successful without any errors. When I boot the M1 in option mode to see which drives available I don't see the Macintosh HD anylonger only the Options entry. How can I make the Macintosh HD be able to used as Boot drive again ?
2
0
774
Jun ’21
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
Connect Two Apps
I wanted to know how would I connect two apps to each other. I am making an app similiar to Uber. An example of what I need help with is in Uber when someone requests a ride that person can see who their driver is and the drivers info on the customer app, and the driver gets the passengers info in the Uber employee app. Even if one person is using an iPhone and the other is using Android.One app is for customers and the other is for employees.
4
0
2.6k
Jul ’18
Merge 2 Apple IDs
Now that Apple is allowing users to merge two Apple IDs, how does one remove/delete songs from the Primary Apple ID music library? Is it a no-no to merge two Apple IDs? The notes on merging suggest this is a problem but offer no workaround. The only option I can see is to hide songs. Is this sufficient to allow the merging of two Apple IDs?
1
0
118
Mar ’25
How to Simulate for iPad Air 2?
I'm learning to develop iOS apps. And I'd like to test it on my iPad Air 2. My Xcode is set up as follows: iOS 13.0 Xcode 12.3 Swift 5.3 My iPad is on iOS Version 14.3. I had my iPad Air 2 set up before, but its simulator disappeared when I upgraded the Xcode version. How do I set up Xcode so I can simulate/run apps on an iPad Air 2? Thank you very much in advance.
0
0
700
Jan ’21
Swift 2 closure with throw
Hello guys,While using Swift 2 I got one problem – how to throw inside closure of function. Example:// this func can't be changed and modifiedfunc httpRequest(param:String, completionHTTP:(result:String) -> Void){ completionHTTP(result:some result)}// this func can be changed and modifiedfunc myFunc() throws { httpRequest(param1) { (result) -> Void in throw NSError(domain: MyDomain, code: 0, userInfo: [NSLocalizedDescriptionKey: Error description]) }}myFunc - gives error of invalid conversion from thowing function to non-throwing functionHow can I call throw inside of closure of non-throwing func?
Replies
10
Boosts
0
Views
3.6k
Activity
Aug ’15
Two errors -- binary not optimized for iphone 5 (error 90096) and invalid code signing (error 90163) when submitting to iTunes
I have two issues when I upload to iTunes and I’m not sure if they are related to each other:ERROR ITMS- 90096: “Your binary is not optimized for iPhone 5 ……” This is weird because I have the correct splash screen included which is Default-568h@2x with the file size being 640 x 1136. Not sure why I’m getting this error. I've submitted several apps with this splash screen size and having had a problem in the past.ERROR ITMS- 90096: “Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning file. The bundle contains a key that is not included in the provi…… “beta-reports-active”. I know that this issue is being caused by the beta-reports-active tag. I’ve researched this issue but have not found anything that definitively solves this problem. For this building I’m using a production certificate and provisioning profile. I am attempting to upload the app for TestFlight App so I need to solve this problem.My devel
Replies
6
Boosts
0
Views
716
Activity
Feb ’16
SwiftUI LazyVGrid with two columns
lazyVGrid with two columns, is there a way to span the odd last item to span the two columns just to be symmetric🤔. Apple reminders app does exactly that but not sure if they use the LazyVGrid any pointers are very much appreciated.
Replies
2
Boosts
0
Views
1.6k
Activity
Jul ’20
What is the order of didMoveToWindow for two views?
What is the calling order of didMoveToWindow for two views after switching between two ViewControllers. In my project,we need get the property of view.window to prejucduce if the view is in the window,when one ViewController transform to another viewController。 We would like to know how this behavior is defined
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
751
Activity
Jun ’23
Reading from a file swift 2
I'm trying to read a file which exist with the below code in Swift 2. It seems to be failing. Appreciate any inputs:let someText = NSString(string:some text)let destinationPath = /users/johnt/myFile.txtvar filemgr = NSFileManager.defaultManager()if filemgr.fileExistsAtPath(destinationPath) { print(File exists) do { let readFile = try String(contentsOfFile: destinationPath, encoding: NSUTF8StringEncoding) // Throws this error// How do I read the file contents from here? print((readFile)) } catch let error as NSError { print(Error: (error.domain)) }} else { print(File does not exist) do { try someText.writeToFile(destinationPath, atomically: true, encoding: NSUTF8StringEncoding) } catch let error as NSError { print(Error: (error.domain)) }}
Replies
4
Boosts
0
Views
14k
Activity
Aug ’15
TextKit 2 and SwiftUI
Is it possible to use/draw a SwiftUI view in TextKit 2? The NSTextLayoutManagerDelegate seems to be built around returning a NSTextLayoutFragment. Since NSTextLayoutFragment is a class, I can't subclass it and use SwiftUI. I'd love to create my views using SwiftUI, since it's a lot faster than figuring out CGPaths, pixel perfect anti-aliasing, etc. Thanks!
Replies
0
Boosts
0
Views
1.3k
Activity
Sep ’21
eGPU Thunderbolt 2 Support
Hi, all, I recently bought an iMac 5K(Late 2015 model) with thunderbolt 2 ports. I was wondering if the eGPU support in high sierra would work on my Mac through a thunderbolt 3 to thunderbolt 2 adapter.
Replies
0
Boosts
0
Views
695
Activity
Sep ’17
Configurator 2 disabled Boot
After connecting my M1 to an Intel Mac where I started Configurator 2 the M1 boots in a loop, seeing the Apple Logo and the progressbar until half and then restart and same again in a endless loop. When I connected the M1 to the Intel Mac with Configurator 2 open I set the M1 in DFU mode and Configurator 2 said it need to download and install something ( 1 item ). After that it restarted and I saw the M1 in DFU mode again after Configurator 2 restarted. I didn't do any restore or revive. I closed Configurator 2 and restarted the M1. From thenon it is in a boot loop. I opened the recovery mode on the M1 and First aided the Macintosh HD drive and the DATA drive. Both successful without any errors. When I boot the M1 in option mode to see which drives available I don't see the Macintosh HD anylonger only the Options entry. How can I make the Macintosh HD be able to used as Boot drive again ?
Replies
2
Boosts
0
Views
774
Activity
Jun ’21
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
Connect Two Apps
I wanted to know how would I connect two apps to each other. I am making an app similiar to Uber. An example of what I need help with is in Uber when someone requests a ride that person can see who their driver is and the drivers info on the customer app, and the driver gets the passengers info in the Uber employee app. Even if one person is using an iPhone and the other is using Android.One app is for customers and the other is for employees.
Replies
4
Boosts
0
Views
2.6k
Activity
Jul ’18
Merge 2 Apple IDs
Now that Apple is allowing users to merge two Apple IDs, how does one remove/delete songs from the Primary Apple ID music library? Is it a no-no to merge two Apple IDs? The notes on merging suggest this is a problem but offer no workaround. The only option I can see is to hide songs. Is this sufficient to allow the merging of two Apple IDs?
Replies
1
Boosts
0
Views
118
Activity
Mar ’25
How to Simulate for iPad Air 2?
I'm learning to develop iOS apps. And I'd like to test it on my iPad Air 2. My Xcode is set up as follows: iOS 13.0 Xcode 12.3 Swift 5.3 My iPad is on iOS Version 14.3. I had my iPad Air 2 set up before, but its simulator disappeared when I upgraded the Xcode version. How do I set up Xcode so I can simulate/run apps on an iPad Air 2? Thank you very much in advance.
Replies
0
Boosts
0
Views
700
Activity
Jan ’21