Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

164,069 results found

Post

Replies

Boosts

Views

Activity

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
932
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
446
Sep ’15
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
314
3w
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
586
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
Bug in ‘Learn to Code 2’ – ‘Variables: Seeking Seven Gems’ Causing Errors Regardless of Actions
I’ve encountered a bug in Swift Playgrounds within “Learn to Code 2”, specifically in the “Variables: Seeking Seven Gems” section. No matter what I do—or even if I do nothing at all—an error always occurs. I’ve tested this on both an iPad (9th generation) and an iPad Pro 11-inch (4th generation), and the issue happens on both devices. Has anyone else experienced this? Any ideas on how to fix or work around it? Thanks!
1
0
518
Feb ’25
Notification payload sent to APNS through HTTP/2 Request with status code 200
Hi all, I'm trying to send 1000 notification payload to APNS server for the same device token. When my program sent out the notification payload to APNS, through http/2 and getting the response 200 for all my requests. And it confirms that the payload is sent to APNS server. However, the device cannot receive any notification, did i missed anything!
1
0
887
Jun ’21
watchos 2 beta 2
hi. i have updated to ios 9 beta then tried to update mu apple watch to watchos 2 beta 2, all went smoothly, untill it started installing it on my watch. the apple logo appeared and the ring around it. it has been loading for more than an hour and stuck on 25% of the ring. in other words the watch is not launching. any suggestions please ?
45
0
28k
Jun ’15
I have two sets of code which are literally same but only one code set works and another doesn't
import Foundation enum VideoDetails: String, CaseIterable{ case Nature , Food , Animals , Travel } struct ResponseBody: Decodable { var page: Int var perPage: Int var totalResults: Int var url: String var videos: [Video] } struct Video: Identifiable, Decodable{ var id: Int var image: String var duration: Int var user: User var videofiles: [VideoFile] struct User: Identifiable, Decodable { var id: Int var name: String var url: String } struct VideoFile: Identifiable, Decodable { var id: Int var quality: String var fileType: String var link: String } } //this one doesn't work but the below code works perfectly can anyone why it is happening import Foundation enum VideoDetails: String, CaseIterable{ case Nature , Food , Animals , Travel } struct Video: Identifiable, Decodable { var id: Int var image: String var duration: Int var user: User var videoFiles: [VideoFile] struct User: Identifiable, Decodable { var id: Int var name: String var url: String } struct VideoFile: Identifiable, Decodable { var id:
3
0
617
Sep ’22
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
932
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
422
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
446
Activity
Sep ’15
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
314
Activity
3w
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
586
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
Bug in ‘Learn to Code 2’ – ‘Variables: Seeking Seven Gems’ Causing Errors Regardless of Actions
I’ve encountered a bug in Swift Playgrounds within “Learn to Code 2”, specifically in the “Variables: Seeking Seven Gems” section. No matter what I do—or even if I do nothing at all—an error always occurs. I’ve tested this on both an iPad (9th generation) and an iPad Pro 11-inch (4th generation), and the issue happens on both devices. Has anyone else experienced this? Any ideas on how to fix or work around it? Thanks!
Replies
1
Boosts
0
Views
518
Activity
Feb ’25
Notification payload sent to APNS through HTTP/2 Request with status code 200
Hi all, I'm trying to send 1000 notification payload to APNS server for the same device token. When my program sent out the notification payload to APNS, through http/2 and getting the response 200 for all my requests. And it confirms that the payload is sent to APNS server. However, the device cannot receive any notification, did i missed anything!
Replies
1
Boosts
0
Views
887
Activity
Jun ’21
watchos 2 beta 2
hi. i have updated to ios 9 beta then tried to update mu apple watch to watchos 2 beta 2, all went smoothly, untill it started installing it on my watch. the apple logo appeared and the ring around it. it has been loading for more than an hour and stuck on 25% of the ring. in other words the watch is not launching. any suggestions please ?
Replies
45
Boosts
0
Views
28k
Activity
Jun ’15
I have two sets of code which are literally same but only one code set works and another doesn't
import Foundation enum VideoDetails: String, CaseIterable{ case Nature , Food , Animals , Travel } struct ResponseBody: Decodable { var page: Int var perPage: Int var totalResults: Int var url: String var videos: [Video] } struct Video: Identifiable, Decodable{ var id: Int var image: String var duration: Int var user: User var videofiles: [VideoFile] struct User: Identifiable, Decodable { var id: Int var name: String var url: String } struct VideoFile: Identifiable, Decodable { var id: Int var quality: String var fileType: String var link: String } } //this one doesn't work but the below code works perfectly can anyone why it is happening import Foundation enum VideoDetails: String, CaseIterable{ case Nature , Food , Animals , Travel } struct Video: Identifiable, Decodable { var id: Int var image: String var duration: Int var user: User var videoFiles: [VideoFile] struct User: Identifiable, Decodable { var id: Int var name: String var url: String } struct VideoFile: Identifiable, Decodable { var id:
Replies
3
Boosts
0
Views
617
Activity
Sep ’22