Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,512 results found

Post

Replies

Boosts

Views

Activity

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
815
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
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
975
Jun ’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
386
Aug ’16
Maintain 2 Versions for same APP
Hello all, I have two versions of the same app (SwiftUI) , one of which is free (ad-supported) and the other is not. My two current XCode projects has identical code, but the free one has AdMob code inside. The code in my current two projects in XCode is same, however the free one includes AdMob. I don't like this method because I have to copy and paste changes I make to one into the other. Is it possible to generate a version for the Apple Store with only one project and omit some code? Or I'll have to proceed as I am currently, using the same code for two projects. Thanks a lot!
0
0
247
May ’23