Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,591 results found

Post

Replies

Boosts

Views

Activity

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
Error in Swift 2: Overloading a function
Hi there!I am a novice to Swift and Xcode, but know C++.I tried to mimick the code in a Stanford University course for iOS 8 App development (2014-15) using Xcode 7 and swift 2 for the calculator example.In his lecture 2 video on https://www.youtube.com/watch?v=QLJtT7eSykg,the lecturer suggested over loading a function like this (and I think they were using Xcode 6 and an earlier Swift standard):func performOperation(operation: (Double, Double) -> Double) { if operandStack.count >= 2 { displayValue = operation(operandStack.removeLast(), operandStack.removeLast()) enter() } } func performOperation(operation: Double -> Double) { //////////////////////////////// if operandStack.count >= 1 { displayValue = operation(operandStack.removeLast()) enter() } }However, the compiler seems to have problem with this overloading attempt, and the error is:/Users/.../Calculator/ViewController.swift:50:10: Method 'performOperation' with Objective-C selector 'performOperation:' co
1
0
776
Dec ’15
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
1.4k
Jul ’18
Mechanical keyboard on iPad Pro (Gen 2) 12.9 with iPadOS 13 beta 2
I've been using a WASD V3 mechanical keyboard with my iPad Pro 12.9 (Gen 2), iPad mini 5, and iPhone 8 Plus – and they've all worked perfectly until I updated to iOS 13 beta 2 (on all three devices).With iOS/iPadOS 13 beta 1, no problem on all three. But after installing beta 2 to all three, only the iPad mini 5 and iPhone 8 Plus work with the keyboard – the iPad Pro 12.9 (Gen 2) does not. I connect the mechanical to these devices with the same Apple Lightning to USB3 Camera Adapter – just switching the adapter from one to another, as needed – and have the Lightning port on the adapter connected to an Apple 30W power source.I have two of the Apple Lightning to USB3 Camera Adapters and have tried both with the same results – the mechanical keyboard will not work with the 12.9, but works on the iPad mini and the iPhone. I'm now using the Apple Wireless Keyboard with the 12.9 Pro, but would like to return to the mechanical keyboard. There's every chance that the next
0
0
595
Jul ’19
Charactor Code of AssetId
Accoding to Table 2-4 of FairPlay Programing Guide, Asset ID in SPC is byte array.On other hand, the chapter EME Message Exchange says The AssetId can be any string you choose.So what charactor code should I choose?In FPS_in_Safari_Example.html, charactor code of AssetId is like Unicode.Its javascript code to get byte array is the below: function stringToArray(string) { var buffer = new ArrayBuffer(string.length*2); // 2 bytes for each char var array = new Uint16Array(buffer); for (var i=0, strLen=string.length; i<strLen; i++) { array[i] = string.charCodeAt(i); } return array; }The length of Unicode is not always 2 bytes. So it will not working well because Key Server can't extract original string.It doesn't make sense to treat Asset Id as string in Safari.Should I pass AssetId to Key Server in the outer of SPC Message?
1
0
559
Sep ’16
Two Dimensional Village
I have just begun programming Swift, and am a novice, so please bear with me.I would like a basic understanding of how to do the following:Create a two dimensional array where each cell represents an individualRepresent that array graphically so that every pixel represents the person in that cell and the pixel would be pink if the person is female and blue if the person is maleThank you in advance for any and all help!
2
0
315
Dec ’15
Reply to Generating strings file with genstrings
NSLocalizedString() can't be used un a function like that, because it's a macro. If you have two strings to localize you need to have two separate NSLocalizedString() macros in the code containing those strings. This way genstrings would be able find them in the code. The way you wrote it, all genstrings can see is one entry.
Nov ’22
Conflict between 2 network extensions/ 2 transparent proxies
We have a problem when another solution uses a transparent proxy or an app proxy provider. (Network Extension OTHER). When this solution is installed (Network Extension OTHER) we will exclusively receive in our network extension (Network Extension AAA) all the connections from the mentioned network extension (no flow received from browsers or other applications; this is a normal behaviour if the mentioned solution received the connections first). In our network extension we redirect all the connections for all monitored apps. If we monitor the mentioned solution we will intercept all connections from the VPN (from Network Extension OTHER), but these connections will be redirected to our local proxy. In our local proxy we will analyze the traffic and one connection will be created from our local proxy to the server, intercepted again by the mentioned third party solution (infinite loop). If the vpn solution uses NETransparentProxyProvider, they can ignore our local proxy process to not monitor again the flow a
4
0
1.4k
Oct ’21
Swift 2 CFType Conversion
In Swift 1.2 I had a C function with the following signature:__nonnull CFArrayRef FDCreateSupportedAudioFileExtensions() CF_RETURNS_RETAINED;I know that this function returns an array of CFStringRef instances, so I called it from Swift like this:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as! [String]and everything worked as expected. However, in Swift 2 this code fails at runtime due to the forced cast (EXC_BAD_INSTRUCTION). I'm able to get things working with the following:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as NSArray as! [String]I'm unsure what changed from Swift 1.2 to 2.0. Is this a bug in the current version of Swift or have I missed something? Everything I've read implies that CFTypes are toll-free bridged to their Swift counterparts so I'm not sure why what used to work is now failing.
6
0
1k
Aug ’15
2 entries of Transparent App proxy
In my Mac OS Transparent App proxy code I activate the extension LoadAllPref Set NETunnelProviderProtocol & NETransparentProxyManager configurations SavePref Again LoadAllPref get the connection object startVPNTunnelAndReturnError This is working good in most of the case . sometimes I see 2 entries of my extension in Network Preferences and both the entries are yellow (not connected ). is there any known issue around this or any way to workaround this issue ?
6
0
989
Sep ’20
Unable to submit watch OS 2 (Swift 2) for internal testing via TestFlight
I have migrated my watch OS 1 app to watch OS 2 and converted to swift, now testflight will not accept the upload with the following errorERROR ITMS-90125 The binary is invalid.Submitting the watch OS 1 target written in objective-C worked couple days ago.Tried to delete the watch app + extension targets and re-create from scratch, the same error happens.Choosing validate from Xcode archive dialog works fine as wellLooks to me like swift 2 + watch OS 2 related bug in iTunes, anybody successfully submitted watchOS 2 in swift for testing?thanks,Martin
3
0
540
Aug ’15
COMPARING 2 STRINGS
I am trying to compare two strings and then do something. The first string is a string that is captured in UITextView using the following code:********************************** func updateIncomingData () { NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: Notify), object: nil , queue: nil) { notification in let appendString = n let myFont = UIFont(name: Helvetica Neue, size: 30.0) let myAttributes2 = [NSFontAttributeName: myFont!, NSForegroundColorAttributeName: UIColor.red] let attribString = NSAttributedString(string: + (characteristicASCIIValue as String) + appendString, attributes: myAttributes2) let newAsciiText = NSMutableAttributedString(attributedString: self.consoleAsciiText!) self.password_P_F.attributedText = NSAttributedString(string: characteristicASCIIValue as String , attributes: myAttributes2) newAsciiText.append(attribString) self.consoleAsciiText = newAsciiText self.password_P_F.attributedText = self.consoleAsciiText let pwmatch:String = The p
2
0
602
Sep ’17
Reply to How do you set a button (created with code) to conform to AutoLayout?
You can 'roll your own' auto layout using code like: float screenWidth=self.view.bounds.size.width; float screenHeight=self.view.bounds.size.height; float leftEdge=screenWidth/2 - myUIComponent.frame.size.width/2; float topEdge=30; myUIComponent.frame=CGRectMake(leftEdge,topEdge,myUIComponent.frame.size.width,myUIComponent.frame.size.Height); anotherUIComponent.center=CGPointMake(screenWidth/2,screenHeight/2);
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’18
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
Error in Swift 2: Overloading a function
Hi there!I am a novice to Swift and Xcode, but know C++.I tried to mimick the code in a Stanford University course for iOS 8 App development (2014-15) using Xcode 7 and swift 2 for the calculator example.In his lecture 2 video on https://www.youtube.com/watch?v=QLJtT7eSykg,the lecturer suggested over loading a function like this (and I think they were using Xcode 6 and an earlier Swift standard):func performOperation(operation: (Double, Double) -> Double) { if operandStack.count >= 2 { displayValue = operation(operandStack.removeLast(), operandStack.removeLast()) enter() } } func performOperation(operation: Double -> Double) { //////////////////////////////// if operandStack.count >= 1 { displayValue = operation(operandStack.removeLast()) enter() } }However, the compiler seems to have problem with this overloading attempt, and the error is:/Users/.../Calculator/ViewController.swift:50:10: Method 'performOperation' with Objective-C selector 'performOperation:' co
Replies
1
Boosts
0
Views
776
Activity
Dec ’15
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
1.4k
Activity
Jul ’18
Mechanical keyboard on iPad Pro (Gen 2) 12.9 with iPadOS 13 beta 2
I've been using a WASD V3 mechanical keyboard with my iPad Pro 12.9 (Gen 2), iPad mini 5, and iPhone 8 Plus – and they've all worked perfectly until I updated to iOS 13 beta 2 (on all three devices).With iOS/iPadOS 13 beta 1, no problem on all three. But after installing beta 2 to all three, only the iPad mini 5 and iPhone 8 Plus work with the keyboard – the iPad Pro 12.9 (Gen 2) does not. I connect the mechanical to these devices with the same Apple Lightning to USB3 Camera Adapter – just switching the adapter from one to another, as needed – and have the Lightning port on the adapter connected to an Apple 30W power source.I have two of the Apple Lightning to USB3 Camera Adapters and have tried both with the same results – the mechanical keyboard will not work with the 12.9, but works on the iPad mini and the iPhone. I'm now using the Apple Wireless Keyboard with the 12.9 Pro, but would like to return to the mechanical keyboard. There's every chance that the next
Replies
0
Boosts
0
Views
595
Activity
Jul ’19
Charactor Code of AssetId
Accoding to Table 2-4 of FairPlay Programing Guide, Asset ID in SPC is byte array.On other hand, the chapter EME Message Exchange says The AssetId can be any string you choose.So what charactor code should I choose?In FPS_in_Safari_Example.html, charactor code of AssetId is like Unicode.Its javascript code to get byte array is the below: function stringToArray(string) { var buffer = new ArrayBuffer(string.length*2); // 2 bytes for each char var array = new Uint16Array(buffer); for (var i=0, strLen=string.length; i<strLen; i++) { array[i] = string.charCodeAt(i); } return array; }The length of Unicode is not always 2 bytes. So it will not working well because Key Server can't extract original string.It doesn't make sense to treat Asset Id as string in Safari.Should I pass AssetId to Key Server in the outer of SPC Message?
Replies
1
Boosts
0
Views
559
Activity
Sep ’16
2 weeks+ for expedited review
my app has taken on aversge 21 days between reviews happening ive been waiting for an expedited review for 2 weeks on the phone yesterday they said apps are reviewed in the order they come in so that means every single expedited review has been waiting longer than 2 weeks, correct?
Replies
0
Boosts
0
Views
144
Activity
1w
Two Dimensional Village
I have just begun programming Swift, and am a novice, so please bear with me.I would like a basic understanding of how to do the following:Create a two dimensional array where each cell represents an individualRepresent that array graphically so that every pixel represents the person in that cell and the pixel would be pink if the person is female and blue if the person is maleThank you in advance for any and all help!
Replies
2
Boosts
0
Views
315
Activity
Dec ’15
Reply to Generating strings file with genstrings
NSLocalizedString() can't be used un a function like that, because it's a macro. If you have two strings to localize you need to have two separate NSLocalizedString() macros in the code containing those strings. This way genstrings would be able find them in the code. The way you wrote it, all genstrings can see is one entry.
Replies
Boosts
Views
Activity
Nov ’22
Conflict between 2 network extensions/ 2 transparent proxies
We have a problem when another solution uses a transparent proxy or an app proxy provider. (Network Extension OTHER). When this solution is installed (Network Extension OTHER) we will exclusively receive in our network extension (Network Extension AAA) all the connections from the mentioned network extension (no flow received from browsers or other applications; this is a normal behaviour if the mentioned solution received the connections first). In our network extension we redirect all the connections for all monitored apps. If we monitor the mentioned solution we will intercept all connections from the VPN (from Network Extension OTHER), but these connections will be redirected to our local proxy. In our local proxy we will analyze the traffic and one connection will be created from our local proxy to the server, intercepted again by the mentioned third party solution (infinite loop). If the vpn solution uses NETransparentProxyProvider, they can ignore our local proxy process to not monitor again the flow a
Replies
4
Boosts
0
Views
1.4k
Activity
Oct ’21
Swift 2 CFType Conversion
In Swift 1.2 I had a C function with the following signature:__nonnull CFArrayRef FDCreateSupportedAudioFileExtensions() CF_RETURNS_RETAINED;I know that this function returns an array of CFStringRef instances, so I called it from Swift like this:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as! [String]and everything worked as expected. However, in Swift 2 this code fails at runtime due to the forced cast (EXC_BAD_INSTRUCTION). I'm able to get things working with the following:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as NSArray as! [String]I'm unsure what changed from Swift 1.2 to 2.0. Is this a bug in the current version of Swift or have I missed something? Everything I've read implies that CFTypes are toll-free bridged to their Swift counterparts so I'm not sure why what used to work is now failing.
Replies
6
Boosts
0
Views
1k
Activity
Aug ’15
2 entries of Transparent App proxy
In my Mac OS Transparent App proxy code I activate the extension LoadAllPref Set NETunnelProviderProtocol & NETransparentProxyManager configurations SavePref Again LoadAllPref get the connection object startVPNTunnelAndReturnError This is working good in most of the case . sometimes I see 2 entries of my extension in Network Preferences and both the entries are yellow (not connected ). is there any known issue around this or any way to workaround this issue ?
Replies
6
Boosts
0
Views
989
Activity
Sep ’20
Unable to submit watch OS 2 (Swift 2) for internal testing via TestFlight
I have migrated my watch OS 1 app to watch OS 2 and converted to swift, now testflight will not accept the upload with the following errorERROR ITMS-90125 The binary is invalid.Submitting the watch OS 1 target written in objective-C worked couple days ago.Tried to delete the watch app + extension targets and re-create from scratch, the same error happens.Choosing validate from Xcode archive dialog works fine as wellLooks to me like swift 2 + watch OS 2 related bug in iTunes, anybody successfully submitted watchOS 2 in swift for testing?thanks,Martin
Replies
3
Boosts
0
Views
540
Activity
Aug ’15
COMPARING 2 STRINGS
I am trying to compare two strings and then do something. The first string is a string that is captured in UITextView using the following code:********************************** func updateIncomingData () { NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: Notify), object: nil , queue: nil) { notification in let appendString = n let myFont = UIFont(name: Helvetica Neue, size: 30.0) let myAttributes2 = [NSFontAttributeName: myFont!, NSForegroundColorAttributeName: UIColor.red] let attribString = NSAttributedString(string: + (characteristicASCIIValue as String) + appendString, attributes: myAttributes2) let newAsciiText = NSMutableAttributedString(attributedString: self.consoleAsciiText!) self.password_P_F.attributedText = NSAttributedString(string: characteristicASCIIValue as String , attributes: myAttributes2) newAsciiText.append(attribString) self.consoleAsciiText = newAsciiText self.password_P_F.attributedText = self.consoleAsciiText let pwmatch:String = The p
Replies
2
Boosts
0
Views
602
Activity
Sep ’17
Reply to How do you set a button (created with code) to conform to AutoLayout?
You can 'roll your own' auto layout using code like: float screenWidth=self.view.bounds.size.width; float screenHeight=self.view.bounds.size.height; float leftEdge=screenWidth/2 - myUIComponent.frame.size.width/2; float topEdge=30; myUIComponent.frame=CGRectMake(leftEdge,topEdge,myUIComponent.frame.size.width,myUIComponent.frame.size.Height); anotherUIComponent.center=CGPointMake(screenWidth/2,screenHeight/2);
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’18
watchOS 1/2 compatibility
I would like to add Watch support to my app and if I understand correctly...iOS 8 only supports watchOS 1 and iOS 9 supports both watchOS 1 and 2.Furthermore, watchOS 1 app won't run on watchOS 2 device and vise versa.Is this correct?
Replies
1
Boosts
0
Views
748
Activity
Aug ’15