Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,346 results found

Post

Replies

Boosts

Views

Activity

iHate Swift 2
Am I the only one who hates the big changes Apple makes this year? Why can't they make just small changes in Swift???? It's not hard to convert all my Code to Swift 2. It is IMPOSSIBLE. I get 9 errors, even if I could fix them and press the build and run Button I get 20 new errors. Every time. And most of them do really not make any sense. I will never ever switch to Swift 2. And if this means I can't build new Apps one day, that's ok. Even switching to Android is still better than switching from Swift 1 to Swift 2. I will not learn a completely new programming language every year. Because that's what Swift 2 is. Last year it was Swift. Now it's Swift 2. And next year? Will I have to learn Swift 3 which will also be a completely new language? No, thanks.
22
0
3.3k
Aug ’15
Two problems in the program compilation of the new version of xcode (the target code is the content filter of the network extension)
I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors: [Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows. [default] CGSWindowShmemCreateWithPort failed on port 0 For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey() and window.orderFrontRegardless(), but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice? Xcode:Version 14.3.1 (14E300c)
1
0
1.1k
Aug ’23
Reply to ForEach and HStack
The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21
Two Bugs
1. Audio randomly cutting out on this new Beta 3 Build. (reported)2. Cable Test hangs and does not complete on this new Beta 3 build (reported).Anyone else experiencing these two?
12
0
2.9k
Jul ’18
Can you publish 2 separate apps for 2 languages?
Hi, we are planing to publish an education app that comes in 2 languages, german and english. The plan was to publish 2 apps, each for each language and people can chose whichone to get. We did not want to include both languages in 1 package as the app is very heavy on videos and including both languages would be too big. If possible, we would like the keep the same App name but maybe adjust the icon to distinguish between german and english, but I would like to know what would be the recommended way to go about this? Again, having both languages inside the app is not really possible, alteast not without a big rework. Thanks!
3
0
838
Mar ’23
Reply to How to create a button in Preferences
What do you mean by pages (I have two pages) ? I have two View Controllers in storyboard and two files for the code: ViewController.swift and Preferences.swift. They are connected in the Identity inspector. Please show code that will be easier to explain. In a simplified version, there is no code yet. I just put a button on the View Controller - Preferences of the Storyboard
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’20
How to configure 2 buttons to play 2 different sounds at the same time
This code has 4 buttons; 2 buttons play different sounds and 2 buttons stop the sound. Only one button can play its sound at a time. Once another button is pressed the sound from the button that was pressed is stopped for the new button to play its song. How make my code play 2 buttons at the same time? Code is below thanks?mport UIKitimport AVFoundationclass ViewController: UIViewController {var audioPlayer = AVAudioPlayer()override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() }@IBAction func hatingschool(sender: AnyObject) { let alertSound = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource(s, ofType: mp3)!) do { / try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback) } catch _ { } do { try AVAudioSession.sharedInstance().setActive(true) } catch _ { } / do { audioPlayer = try AVAudioPlayer(contentsOfURL: alertSound) audioPlayer.numberOfLoops = -1
1
0
394
Aug ’16
Some questions about Rosetta 2
Yesterday, WWDC announced the exciting news of MAC on arm. In order to complete the transition from x86 architecture to arm architecture, apple developed Universal 2 and Rosetta 2. Universal 2 is a binary code that can run on both x86 and arm architectures. Rosetta 2 can translate the original application based on x86 architecture into application based on ARM architecture during installation, or even translate the running code, and publicize that no matter how complex the professional application and its plug-in, it can handle it. At present, the software installed with brew is based on x86 architecture. If I use the command “brew cask install” on a DTK (developer transition kit, based on ARM Architecture) to install the software, can the software run normally on DTK? Will Rosetta 2 automatically translate this software? Or wait for the software author to recompile based on ARM architecture?
0
0
993
Jun ’20
Airplay 2
Does the current beta support Airplay 2 and is it backwards compatible with Airplay?Does it require new Airplay 2 devices? If not, how to access multiroom features?Thanks!
Replies
2
Boosts
0
Views
2.3k
Activity
Jun ’17
iHate Swift 2
Am I the only one who hates the big changes Apple makes this year? Why can't they make just small changes in Swift???? It's not hard to convert all my Code to Swift 2. It is IMPOSSIBLE. I get 9 errors, even if I could fix them and press the build and run Button I get 20 new errors. Every time. And most of them do really not make any sense. I will never ever switch to Swift 2. And if this means I can't build new Apps one day, that's ok. Even switching to Android is still better than switching from Swift 1 to Swift 2. I will not learn a completely new programming language every year. Because that's what Swift 2 is. Last year it was Swift. Now it's Swift 2. And next year? Will I have to learn Swift 3 which will also be a completely new language? No, thanks.
Replies
22
Boosts
0
Views
3.3k
Activity
Aug ’15
Two problems in the program compilation of the new version of xcode (the target code is the content filter of the network extension)
I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors: [Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows. [default] CGSWindowShmemCreateWithPort failed on port 0 For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey() and window.orderFrontRegardless(), but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice? Xcode:Version 14.3.1 (14E300c)
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’23
Reply to ForEach and HStack
The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’21
Any iPad 2 iOS 9 Beta 2 users?
Any iPad 2 iOS 9 Beta 2 users?Do I dare try it? Could it be any worse then 8.3? (Sluggish!)
Replies
4
Boosts
0
Views
975
Activity
Jun ’15
Core Graphics on WatchOS 2?
Looking for sample code for using Core Graphics on a WatchOS 2?ThanksGreg
Replies
0
Boosts
0
Views
391
Activity
Jul ’15
Two Bugs
1. Audio randomly cutting out on this new Beta 3 Build. (reported)2. Cable Test hangs and does not complete on this new Beta 3 build (reported).Anyone else experiencing these two?
Replies
12
Boosts
0
Views
2.9k
Activity
Jul ’18
Can you publish 2 separate apps for 2 languages?
Hi, we are planing to publish an education app that comes in 2 languages, german and english. The plan was to publish 2 apps, each for each language and people can chose whichone to get. We did not want to include both languages in 1 package as the app is very heavy on videos and including both languages would be too big. If possible, we would like the keep the same App name but maybe adjust the icon to distinguish between german and english, but I would like to know what would be the recommended way to go about this? Again, having both languages inside the app is not really possible, alteast not without a big rework. Thanks!
Replies
3
Boosts
0
Views
838
Activity
Mar ’23
Upload 2 version to to 2 different region
Hi I have an app in the store that distributed to 2 region(IL and AU) I want to push another app only to one region (IL) But, I want the old version stay in AU region How can I do it?
Replies
1
Boosts
0
Views
706
Activity
Sep ’23
Reply to How to create a button in Preferences
What do you mean by pages (I have two pages) ? I have two View Controllers in storyboard and two files for the code: ViewController.swift and Preferences.swift. They are connected in the Identity inspector. Please show code that will be easier to explain. In a simplified version, there is no code yet. I just put a button on the View Controller - Preferences of the Storyboard
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’20
watchOS 3 Beta 2 2-factor authentication restore issue
Since updating to 2-factor authentication, I am no longer able to restore my apple watch. When I logged into appleid.apple.com I noticed that my iphone 6s and Apple Watch states that they can't be used to received apple authentication codes. However, my 2015 MPB can. I'm stuck at the 'sign in to iCloud' screen.
Replies
0
Boosts
0
Views
248
Activity
Jul ’16
Reply to Writing to Label from Gesture function
I can't see anything wrong with your code. It seems you are using Swift 1.x instead of 2. Have you tried the code with Xcode 7 and Swift 2?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’15
How to configure 2 buttons to play 2 different sounds at the same time
This code has 4 buttons; 2 buttons play different sounds and 2 buttons stop the sound. Only one button can play its sound at a time. Once another button is pressed the sound from the button that was pressed is stopped for the new button to play its song. How make my code play 2 buttons at the same time? Code is below thanks?mport UIKitimport AVFoundationclass ViewController: UIViewController {var audioPlayer = AVAudioPlayer()override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() }@IBAction func hatingschool(sender: AnyObject) { let alertSound = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource(s, ofType: mp3)!) do { / try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback) } catch _ { } do { try AVAudioSession.sharedInstance().setActive(true) } catch _ { } / do { audioPlayer = try AVAudioPlayer(contentsOfURL: alertSound) audioPlayer.numberOfLoops = -1
Replies
1
Boosts
0
Views
394
Activity
Aug ’16
Some questions about Rosetta 2
Yesterday, WWDC announced the exciting news of MAC on arm. In order to complete the transition from x86 architecture to arm architecture, apple developed Universal 2 and Rosetta 2. Universal 2 is a binary code that can run on both x86 and arm architectures. Rosetta 2 can translate the original application based on x86 architecture into application based on ARM architecture during installation, or even translate the running code, and publicize that no matter how complex the professional application and its plug-in, it can handle it. At present, the software installed with brew is based on x86 architecture. If I use the command “brew cask install” on a DTK (developer transition kit, based on ARM Architecture) to install the software, can the software run normally on DTK? Will Rosetta 2 automatically translate this software? Or wait for the software author to recompile based on ARM architecture?
Replies
0
Boosts
0
Views
993
Activity
Jun ’20
watchOS 2 and Sprite Kit
Does watchOS 2 support SprireKit? If not, what are the best ways to do games on Apple Watch? Any sample code links will also help.Thank you!
Replies
1
Boosts
0
Views
886
Activity
Jun ’15