Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,616 results found

Post

Replies

Boosts

Views

Activity

WeatherKit native weather(for:) fails with WDSJWTAuthenticatorServiceListener Code=2 despite App Services + Capabilities enabled
Native WeatherKit fails for our app on both development and TestFlight distribution builds, with the WeatherKit service enabled. Team ID: YCF2TGZAX8 Bundle ID: org.walktalkmeditate.pilgrim Call: try await WeatherKit.WeatherService.shared.weather(for: location, including: .current) Error (immediate, every call): Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) What we've verified: WeatherKit enabled under BOTH the Capabilities tab AND the App Services tab for this App ID. com.apple.developer.weatherkit entitlement confirmed in the signed binary (codesign -d --entitlements). Fails identically on (a) Xcode-direct development builds and (b) TestFlight distribution builds. Physical device (iPhone SE 3rd gen) signed into iCloud / an Apple Account. Survives app delete + reinstall AND a device reboot, on both build types. GPS/CoreLocation works fine; only WeatherKit auth fails. Not a timeout or rate-limit. First appeared on Xcode 26 beta; never resolved on stable Xc
0
0
625
Jun ’26
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
396
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
272
May ’23
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
999
Jun ’20
Xcode 10 beta 2 not working on two items
Hi All,I have been experiencing the following issue on XCode 10.0 beta 1) VoIP Push Registration is not working, same code working on XCode 9.3, but does not work Xcode 10.0 beta, it will not trigger VoiP token.2) Notification Extension not working properly, With Customized Notifiction UI, it can launch extension notification UI, but all the action does not work, press action button does not call delegate.Is there anyone has the same issue?Thanks,
0
0
1.9k
Jun ’18
Is StoreKit 2 for Swift only?
My app is a hybrid of ObjC and Swift as I have been converting it from ObjC to Swift a bit at a time. I need to integrate In-App Purchases now and I'd like to use StoreKit 2. However, when I have one of my Swift classes return a Product object, my ObjC classes don't seem to have access to the Product type and referring to it as an SKProduct type doesn't work either. Is it possible to interact with the Store Kit 2 APIs from ObjC code? Or am I going to need to isolate all of the StoreKit2 stuff in my Swift code and communicate differently when it's time to communicate with my old ObjC code? Thanks, Kenny
1
0
2.3k
Nov ’22
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
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
903
Activity
Sep ’23
WeatherKit native weather(for:) fails with WDSJWTAuthenticatorServiceListener Code=2 despite App Services + Capabilities enabled
Native WeatherKit fails for our app on both development and TestFlight distribution builds, with the WeatherKit service enabled. Team ID: YCF2TGZAX8 Bundle ID: org.walktalkmeditate.pilgrim Call: try await WeatherKit.WeatherService.shared.weather(for: location, including: .current) Error (immediate, every call): Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) What we've verified: WeatherKit enabled under BOTH the Capabilities tab AND the App Services tab for this App ID. com.apple.developer.weatherkit entitlement confirmed in the signed binary (codesign -d --entitlements). Fails identically on (a) Xcode-direct development builds and (b) TestFlight distribution builds. Physical device (iPhone SE 3rd gen) signed into iCloud / an Apple Account. Survives app delete + reinstall AND a device reboot, on both build types. GPS/CoreLocation works fine; only WeatherKit auth fails. Not a timeout or rate-limit. First appeared on Xcode 26 beta; never resolved on stable Xc
Replies
0
Boosts
0
Views
625
Activity
Jun ’26
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
250
Activity
Jul ’16
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
396
Activity
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!
Replies
0
Boosts
0
Views
272
Activity
May ’23
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
898
Activity
Jun ’15
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
999
Activity
Jun ’20
How to join two projects together
I wanna join two projects together as one project. Please help me on how to link it together and all. Developing with Swift Code.
Replies
1
Boosts
0
Views
275
Activity
Jan ’17
How to fix this warning in swift 2 ?
Hi, after i installed swift 2 a waring appeared : Variable 'self' was written to, but never readin my code : [weak self] url in
Replies
1
Boosts
0
Views
2.7k
Activity
Oct ’15
2 LightNodes
My problem is that I have 2 LightNodes and both of them cast a shadow. But the Light effect doesn't work if one is in the Shadow of the other. How can I fix that issue?
Replies
3
Boosts
0
Views
934
Activity
Mar ’18
WatchOS 2 Developer Preview 2 now available OTA
WatchOS 2 Developer Preview 2 now available OTA
Replies
5
Boosts
0
Views
1.2k
Activity
Jun ’15
Xcode 10 beta 2 not working on two items
Hi All,I have been experiencing the following issue on XCode 10.0 beta 1) VoIP Push Registration is not working, same code working on XCode 9.3, but does not work Xcode 10.0 beta, it will not trigger VoiP token.2) Notification Extension not working properly, With Customized Notifiction UI, it can launch extension notification UI, but all the action does not work, press action button does not call delegate.Is there anyone has the same issue?Thanks,
Replies
0
Boosts
0
Views
1.9k
Activity
Jun ’18
Is StoreKit 2 for Swift only?
My app is a hybrid of ObjC and Swift as I have been converting it from ObjC to Swift a bit at a time. I need to integrate In-App Purchases now and I'd like to use StoreKit 2. However, when I have one of my Swift classes return a Product object, my ObjC classes don't seem to have access to the Product type and referring to it as an SKProduct type doesn't work either. Is it possible to interact with the Store Kit 2 APIs from ObjC code? Or am I going to need to isolate all of the StoreKit2 stuff in my Swift code and communicate differently when it's time to communicate with my old ObjC code? Thanks, Kenny
Replies
1
Boosts
0
Views
2.3k
Activity
Nov ’22
Installed Watch OS 2 beta 2!
So it appears it worked now.When it was first released, I managed to download a configuration file that was dated June 23 and not June 7 like the ones after they pulled it.I just ran everything and my watch is now updating to Beta 2.
Replies
4
Boosts
0
Views
654
Activity
Jun ’15