Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,613 results found

Post

Replies

Boosts

Views

Activity

Two factor authentication does not show auth. code on my other devices
After upgrading to the latest betas (10.12.4 Beta (16E163f) and iOS 10.3. beta 3) the two factor authentication does not work properly. The machine asks for user name and password. Once I provide that, it shows the dialog box with 6 digit fields, but none of my devices show the number. The only workaround it is to send the number as SMS.Did anybody encounter this problem after upgrade? Any ideas how to resolve it?Thanks,Mirek
0
0
329
Feb ’17
Fox2: SCNVector3... unavailable in swift error compiling sample code Xcode 9 beta 2
Hello, I'm trying to compile the code from Fox2 available athttps://developer.apple.com/videos/play/wwdc2017/604/Fox2This code uses the new features of SceneKit and I presume it can only run if you have the latest beta macOS High Sierra and Xcode Beta (I have beta 2).I downloaded the app and added developer signing. I also tried to run in my iOS device (also iOS 11 beta 2), but the code doesn't even compile. It's showing SNCVector3... errors, e.g.SCNVector3FromFloat3 is unavailable in Swift --> SCNVector3FromFloat3. has been explicitly marked unavailable hereSCNMatrix4FromMat4 is unavailable in Swift --> SCNMatrix4FromMat4. has been explicitly marked unavailable hereSCNVector3ToFloat is unavailable in Swift --> SCNVector3ToFloat. has been explicitly marked unavailable hereWhat could be wrong in my setup?
2
0
1.1k
Jul ’17
Where do I put code that runs when two nodes collide or make contact with each other?
Where do I put code that runs when two nodes collide or make contact with each other?I've already read the article, About Collisions and Contacts. That doesn't give me all the information I need.Here is my code so far. The didBegin callback method isn't firing.import UIKit import SpriteKit class GameScene: SKScene { let player = SKSpriteNode(imageNamed: player) override func didMove(to view: SKView) { physicsWorld.contactDelegate = self player.physicsBody = SKPhysicsBody(rectangleOf: player.size) player.physicsBody?.isDynamic = false player.physicsBody?.categoryBitMask = 0b00001 player.physicsBody?.collisionBitMask = 0b00001 player.position = CGPoint(x: 20 + player.size.width/2, y: view.frame.height / 2) addChild(player) let carEngineStart = SKAudioNode(fileNamed: car_engine_running) addChild(carEngineStart) run(SKAction.repeatForever( SKAction.sequence([ SKAction.run(addCompetitor), SKAction.wait(forDuration: 3.0) ]) )) } override func update(_ currentTime: TimeIn
1
0
1.6k
May ’19
IOS SwiftUI - @main -> Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1a57ff0)
In the code below you can see the error and the code used in my xxApp.swift folder. I was creating Sign In and a Sign Up function, and everything worked very well, but then I got this error when clicking on the register button. If you need more code just let me know, thanks in advance! Here is the code of the @main : import Firebase final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { FirebaseApp.configure() return true } final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { FirebaseApp.configure() return true }`final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIA
0
0
965
Aug ’21
Planning to submit 3rd kind of app with the same code base from the 2 previous releases
Hi,Our team is planning to submit a new app to the app store but we want to know if what we are planning to do violates the App Store guidelines.Basically, we have already submitted 2 apps in the store(approved by Apple) with both of them have the same code baseline except that each of the apps are pointing to a different server address and also different branding (app name, logo, splash screen, etc). We are now planning to do the same for the 3rd time and wondering if this will violates the store's guidelines.Regards.Rodel
0
0
107
Aug ’15
electron mac app crash on the testFlight [Namespace CODESIGNING, Code 2]
crash log ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: OneKey [20876] Path: /Applications/OneKey.app/Contents/MacOS/OneKey Identifier: so.onekey.wallet Version: 3.16.2 (202211070943) App Item ID: 1609559473 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-11-07 17:32:42.4372 +0800 OS Version: macOS 12.5 (21G72) Report Version: 12 Anonymous UUID: Sleep/Wake UUID: 5E78A6FD-4E76-458B-B1F7-DC8CCC4497B6 Time Awake Since Boot: 80000 seconds Time Since Wake: 7078 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)) Exception Codes: UNKNOWN_0x32 at 0x0000000148048a40 Exception Codes: 0x0000000000000032, 0x0000000148048a40 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 2 VM Region Info: 0x148048a40 is in 0x1
5
0
1.8k
Nov ’22
AudioRecorderController not recording audio, watchOS 2 GM: error code 6
The following code is not recording audio on real device running GM.The AudioRecorderController show for 1 sec, and finishes with (finished: false, error: error code 6).https://gist.github.com/anonymous/7cd3b082233ea918338fThe same code worked on real device before GM. Also, it worked on the simulator come with Xcode 7 GM.Did anyone see similar problem?
1
0
450
Sep ’15
Persistent WeatherKit JWT Authentication Failure (Error Code 2) Despite Correct Entitlement
I am a new developer but here is my issue...I am experiencing a persistent WeatherKit authentication failure in my iOS app, resulting in the error WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2. I have verified my configuration and am looking for guidance on next steps. Environment: Xcode Version: 26.6 iOS Version: 26.6 Device: Physical iPhone Apple Developer Program: Paid WeatherKit Usage: Native WeatherKit.WeatherService API (not REST) Steps Already Verified: Xcode: The WeatherKit capability is enabled in Signing & Capabilities. Apple Developer Portal: The WeatherKit capability is enabled for the specific App ID (com.carmineloschiavo.X-StreamWeather) under App Services. Entitlements: The com.apple.developer.weatherkit entitlement is present in the signed app binary and the embedded provisioning profile. Bundle ID: The Bundle ID in Xcode exactly matches the App ID in the portal. Provisioning Profile: I have regenerated the provisioning profile after enabling WeatherKit.
Topic: UI Frameworks SubTopic: SwiftUI
0
0
75
Aug ’26
WeatherKit Error Code 2 – JWT auth fails on device despite correct entitlements
Hey, I've been banging my head against this for a few days now and genuinely can't figure out if it's something on my end or an Apple backend issue. My app has WeatherKit integrated and it works fine in the simulator, but on my physical device I consistently get this in the console: Failed to generate jwt token for: com.apple.weatherkit.authservice Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Things I've already tried and ruled out: WeatherKit capability is enabled in the App ID on developer.apple.com ✓ com.apple.developer.weatherkit = true is in the entitlements file ✓ Removed and re-added the capability in Xcode Signing & Capabilities ✓ Clean Build Folder, fresh install on device ✓ The location coordinates are valid (hardcoded lat/lon in Bavaria) ✓ The weird part is that it's not a location issue — Error Code 2 from WDSJWTAuthenticatorServiceListener suggests the JWT generation itself is failing before any location lookup even hap
2
0
617
Jun ’26
WeatherKit JWT token generation fails with WDSJWTAuthenticator Code=2 despite correct entitlement
I enabled the WeatherKit capability on my App ID (com.saimcan.darkweather, Team 6SWSD6V4ZC) about 12 hours ago. The entitlement is embedded in the binary and the provisioning profile authorizes it, but every request fails at the JWT generation step. Error from the logs: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Relevant log excerpt (iOS 26.4 Simulator, same result on a physical device): [AuthService] Calling process is 3rd party process and has the correct entitlement ... accepting the connection [AuthService] Received proxy request for generating a jwt token. url=https://weatherkit.apple.com [WeatherDataService] Starting to generate JWT token request. bundleIdentifier=com.saimcan.darkweather [AuthService] Signed successfully [WeatherDataService] Make new JWT token request. requestIdentifier=... [AuthService] Failed to generate jwt token ... Code=2 What I have verified: Active Apple Developer Program membership (renewed through April
5
0
706
Apr ’26
com.apple.xpc.launchd[1]: (com.apple.mrt[1153]) Service exited with abnormal code: 2
Hi All!.El Capitan Beta 3 Installed,This messages on the console constantly:29/7/15 7:07:56,279 p.m. smd[192]: Could not remove job com.apple.mrt: 150: Operation not permitted while System Integrity Protection is engaged29/7/15 7:07:56,294 p.m. com.apple.xpc.launchd[1]: (com.apple.mrt[1194]) Service exited with abnormal code: 229/7/15 7:07:56,295 p.m. com.apple.xpc.launchd[1]: (com.apple.mrt) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.How can i fix this?
6
0
15k
Jul ’15
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16c9dbf90)
import FirebaseCore import SwiftUI @main struct ToDoListApp: App { init() { FirebaseApp.configure() } var body: some Scene { WindowGroup { MainView() } } }
Replies
0
Boosts
0
Views
545
Activity
Jan ’24
Two factor authentication does not show auth. code on my other devices
After upgrading to the latest betas (10.12.4 Beta (16E163f) and iOS 10.3. beta 3) the two factor authentication does not work properly. The machine asks for user name and password. Once I provide that, it shows the dialog box with 6 digit fields, but none of my devices show the number. The only workaround it is to send the number as SMS.Did anybody encounter this problem after upgrade? Any ideas how to resolve it?Thanks,Mirek
Replies
0
Boosts
0
Views
329
Activity
Feb ’17
Learn to Code 2 not working. Unusual error.
Here is a screenshot.I've restarted the iPad and closed out the app. I have not figured out how to delete it. In the featured screen it shows that it is downloaded and the button says open and this is what happens.
Replies
1
Boosts
0
Views
266
Activity
Aug ’16
Fox2: SCNVector3... unavailable in swift error compiling sample code Xcode 9 beta 2
Hello, I'm trying to compile the code from Fox2 available athttps://developer.apple.com/videos/play/wwdc2017/604/Fox2This code uses the new features of SceneKit and I presume it can only run if you have the latest beta macOS High Sierra and Xcode Beta (I have beta 2).I downloaded the app and added developer signing. I also tried to run in my iOS device (also iOS 11 beta 2), but the code doesn't even compile. It's showing SNCVector3... errors, e.g.SCNVector3FromFloat3 is unavailable in Swift --> SCNVector3FromFloat3. has been explicitly marked unavailable hereSCNMatrix4FromMat4 is unavailable in Swift --> SCNMatrix4FromMat4. has been explicitly marked unavailable hereSCNVector3ToFloat is unavailable in Swift --> SCNVector3ToFloat. has been explicitly marked unavailable hereWhat could be wrong in my setup?
Replies
2
Boosts
0
Views
1.1k
Activity
Jul ’17
Where do I put code that runs when two nodes collide or make contact with each other?
Where do I put code that runs when two nodes collide or make contact with each other?I've already read the article, About Collisions and Contacts. That doesn't give me all the information I need.Here is my code so far. The didBegin callback method isn't firing.import UIKit import SpriteKit class GameScene: SKScene { let player = SKSpriteNode(imageNamed: player) override func didMove(to view: SKView) { physicsWorld.contactDelegate = self player.physicsBody = SKPhysicsBody(rectangleOf: player.size) player.physicsBody?.isDynamic = false player.physicsBody?.categoryBitMask = 0b00001 player.physicsBody?.collisionBitMask = 0b00001 player.position = CGPoint(x: 20 + player.size.width/2, y: view.frame.height / 2) addChild(player) let carEngineStart = SKAudioNode(fileNamed: car_engine_running) addChild(carEngineStart) run(SKAction.repeatForever( SKAction.sequence([ SKAction.run(addCompetitor), SKAction.wait(forDuration: 3.0) ]) )) } override func update(_ currentTime: TimeIn
Replies
1
Boosts
0
Views
1.6k
Activity
May ’19
IOS SwiftUI - @main -> Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1a57ff0)
In the code below you can see the error and the code used in my xxApp.swift folder. I was creating Sign In and a Sign Up function, and everything worked very well, but then I got this error when clicking on the register button. If you need more code just let me know, thanks in advance! Here is the code of the @main : import Firebase final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { FirebaseApp.configure() return true } final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { FirebaseApp.configure() return true }`final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIA
Replies
0
Boosts
0
Views
965
Activity
Aug ’21
Security Flaw: Signing in Search Ads with two-factor authentication shows code on same device
When I sign in with my Apple ID on Search Ads in Safari on my MacBook, it shows the Two-Factor Authentciation form.However, the authentication code is not only send to my other devices, but also shown on the same MacBook.I guess this is a major security flaw.
Replies
1
Boosts
0
Views
423
Activity
Oct ’16
X-Code is refusing to continue compiling a project because 2 files that are not included in ANY target have code errors.
How do I make X-code do the thing it should already be doing?
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’19
Planning to submit 3rd kind of app with the same code base from the 2 previous releases
Hi,Our team is planning to submit a new app to the app store but we want to know if what we are planning to do violates the App Store guidelines.Basically, we have already submitted 2 apps in the store(approved by Apple) with both of them have the same code baseline except that each of the apps are pointing to a different server address and also different branding (app name, logo, splash screen, etc). We are now planning to do the same for the 3rd time and wondering if this will violates the store's guidelines.Regards.Rodel
Replies
0
Boosts
0
Views
107
Activity
Aug ’15
electron mac app crash on the testFlight [Namespace CODESIGNING, Code 2]
crash log ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: OneKey [20876] Path: /Applications/OneKey.app/Contents/MacOS/OneKey Identifier: so.onekey.wallet Version: 3.16.2 (202211070943) App Item ID: 1609559473 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-11-07 17:32:42.4372 +0800 OS Version: macOS 12.5 (21G72) Report Version: 12 Anonymous UUID: Sleep/Wake UUID: 5E78A6FD-4E76-458B-B1F7-DC8CCC4497B6 Time Awake Since Boot: 80000 seconds Time Since Wake: 7078 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)) Exception Codes: UNKNOWN_0x32 at 0x0000000148048a40 Exception Codes: 0x0000000000000032, 0x0000000148048a40 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 2 VM Region Info: 0x148048a40 is in 0x1
Replies
5
Boosts
0
Views
1.8k
Activity
Nov ’22
AudioRecorderController not recording audio, watchOS 2 GM: error code 6
The following code is not recording audio on real device running GM.The AudioRecorderController show for 1 sec, and finishes with (finished: false, error: error code 6).https://gist.github.com/anonymous/7cd3b082233ea918338fThe same code worked on real device before GM. Also, it worked on the simulator come with Xcode 7 GM.Did anyone see similar problem?
Replies
1
Boosts
0
Views
450
Activity
Sep ’15
Persistent WeatherKit JWT Authentication Failure (Error Code 2) Despite Correct Entitlement
I am a new developer but here is my issue...I am experiencing a persistent WeatherKit authentication failure in my iOS app, resulting in the error WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2. I have verified my configuration and am looking for guidance on next steps. Environment: Xcode Version: 26.6 iOS Version: 26.6 Device: Physical iPhone Apple Developer Program: Paid WeatherKit Usage: Native WeatherKit.WeatherService API (not REST) Steps Already Verified: Xcode: The WeatherKit capability is enabled in Signing & Capabilities. Apple Developer Portal: The WeatherKit capability is enabled for the specific App ID (com.carmineloschiavo.X-StreamWeather) under App Services. Entitlements: The com.apple.developer.weatherkit entitlement is present in the signed app binary and the embedded provisioning profile. Bundle ID: The Bundle ID in Xcode exactly matches the App ID in the portal. Provisioning Profile: I have regenerated the provisioning profile after enabling WeatherKit.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
75
Activity
Aug ’26
WeatherKit Error Code 2 – JWT auth fails on device despite correct entitlements
Hey, I've been banging my head against this for a few days now and genuinely can't figure out if it's something on my end or an Apple backend issue. My app has WeatherKit integrated and it works fine in the simulator, but on my physical device I consistently get this in the console: Failed to generate jwt token for: com.apple.weatherkit.authservice Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Things I've already tried and ruled out: WeatherKit capability is enabled in the App ID on developer.apple.com ✓ com.apple.developer.weatherkit = true is in the entitlements file ✓ Removed and re-added the capability in Xcode Signing & Capabilities ✓ Clean Build Folder, fresh install on device ✓ The location coordinates are valid (hardcoded lat/lon in Bavaria) ✓ The weird part is that it's not a location issue — Error Code 2 from WDSJWTAuthenticatorServiceListener suggests the JWT generation itself is failing before any location lookup even hap
Replies
2
Boosts
0
Views
617
Activity
Jun ’26
WeatherKit JWT token generation fails with WDSJWTAuthenticator Code=2 despite correct entitlement
I enabled the WeatherKit capability on my App ID (com.saimcan.darkweather, Team 6SWSD6V4ZC) about 12 hours ago. The entitlement is embedded in the binary and the provisioning profile authorizes it, but every request fails at the JWT generation step. Error from the logs: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Relevant log excerpt (iOS 26.4 Simulator, same result on a physical device): [AuthService] Calling process is 3rd party process and has the correct entitlement ... accepting the connection [AuthService] Received proxy request for generating a jwt token. url=https://weatherkit.apple.com [WeatherDataService] Starting to generate JWT token request. bundleIdentifier=com.saimcan.darkweather [AuthService] Signed successfully [WeatherDataService] Make new JWT token request. requestIdentifier=... [AuthService] Failed to generate jwt token ... Code=2 What I have verified: Active Apple Developer Program membership (renewed through April
Replies
5
Boosts
0
Views
706
Activity
Apr ’26
com.apple.xpc.launchd[1]: (com.apple.mrt[1153]) Service exited with abnormal code: 2
Hi All!.El Capitan Beta 3 Installed,This messages on the console constantly:29/7/15 7:07:56,279 p.m. smd[192]: Could not remove job com.apple.mrt: 150: Operation not permitted while System Integrity Protection is engaged29/7/15 7:07:56,294 p.m. com.apple.xpc.launchd[1]: (com.apple.mrt[1194]) Service exited with abnormal code: 229/7/15 7:07:56,295 p.m. com.apple.xpc.launchd[1]: (com.apple.mrt) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.How can i fix this?
Replies
6
Boosts
0
Views
15k
Activity
Jul ’15