Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,335 results found

Post

Replies

Boosts

Views

Activity

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
928
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 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
4
0
314
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
496
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
879
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
616
Sep ’22
WWDC App Doesn't allow login with 2 Step Code on iPhone X
I was just testing out the WWDC app ability to add a passcode for the WWDC ticket to the iPhone on my iPhone X.But I noticed the page to request a 2 step token has the wrong top margins, so once you get to that screen you cannot continue or cancel.Raised bug radar https://bugreport.apple.com/web/?problemID=38898852.Given WWDC tickets are now announced, and this version of the App is meant to be compatible with iPhone X, then I thought I'd raise it here so it doesn't slip through the gaps.Looking forward to it this year, see you there.
0
0
788
Apr ’18
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
928
Activity
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
Replies
0
Boosts
0
Views
107
Activity
Aug ’15
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
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 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
4
Boosts
0
Views
314
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
496
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
879
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
616
Activity
Sep ’22
WWDC App Doesn't allow login with 2 Step Code on iPhone X
I was just testing out the WWDC app ability to add a passcode for the WWDC ticket to the iPhone on my iPhone X.But I noticed the page to request a 2 step token has the wrong top margins, so once you get to that screen you cannot continue or cancel.Raised bug radar https://bugreport.apple.com/web/?problemID=38898852.Given WWDC tickets are now announced, and this version of the App is meant to be compatible with iPhone X, then I thought I'd raise it here so it doesn't slip through the gaps.Looking forward to it this year, see you there.
Replies
0
Boosts
0
Views
788
Activity
Apr ’18
How to fix Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d467fe0)
I dont know why it is doing it but it makes my app crash? func locationAuthCheck() { if CLLocationManager.authorizationStatus() == .authorizedWhenInUse { // Get the location from the device currentLocation = locationManager.location the thread1 error is on if CLLocationManager.authorizationStatus() == .authorizedWhenInUse
Replies
1
Boosts
0
Views
614
Activity
Jun ’20