Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

163,108 results found

Post

Replies

Boosts

Views

Activity

Bad Code
Hello: I have the code below to try to get a random selection from CoreData store. However i'm getting a crash on line 33 with the error:Thread 1: EXC_BAD_ACCESS (code=1, address=0x232). After studying the code for hours, I still can't figure out why the crash. The code actually worked one time!!!let fetchRequest = NSFetchRequest(entityName: TempSCQ) fetchRequest.includesPropertyValues = false var selector = Int() nameGrade = gradeValue.stringValue print (Grade entered is (nameGrade)) func getRandomRecord () { if nameGrade == 2 { selector = Int.random(in: 0 ..< 355) } else if nameGrade == 4 { selector = Int.random(in: 0 ..< 418) } else if nameGrade == 6 { selector = Int.random(in: 0 ..< 375) } else if nameGrade == 8 { selector = Int.random(in: 0 ..< 813) } else if nameGrade == 12 { selector = Int.random(in: 0 ..< 355) } } getRandomRecord() fetchRequest.predicate = NSPredicate(format: qid == %@, selector) //Thread 1: EXC_BAD_ACCESS (code=1, a
2
0
806
Dec ’19
Two height constraints?
After I update the height of my view I get the following error message in the console: 2022-03-23 18:38:35.093236+0100 Moiree[10522:931302] [Layout] Unable to simultaneously satisfy constraints: ( , ) Will attempt to recover by breaking constraint How can there be two different height constraints? I set the height with self.heightAnchor.constraint(equalToConstant: newValue) Shouldn't that just update the height constraint that is already there? Thanks and regards, Sebastian
1
0
587
Mar ’22
Keychain sharing and watchos 2
I am using Xcode 7.0 (7A220), targeting iOS 9.0 and watchOS 2.0.I haven't gotten keychain sharing to work in a watchOS 2 app of my own, but it works in this example project, which is part of my question.There is a good talk from NatashaTheRobot (here) where she goes over keychain sharing with watchOS.(Working code from github here), see for yourself that her iOS app and watch app are able to share via keychain in the simulator.Here's what I have done to her project and it still works:Removed the access group string from the KeychainItemWrapper init method. This makes sense because the simulator isn't code signed and the access group gets deleted in KeychainItemWrapper initWithIdentifier: (checkout the comment in initWithIdentifier:)Removed the identifier string from KeychainItemWrapper initWithIdentifier in both view controllersRemoved the keychain-access-groups key from both entitlements that specifies a keychain access group keyYou can remove these three things and keychain sharin
0
0
984
Sep ’15
2 tableviews in viewcontroller
I have 2 tableviews with the datasource and delegates in a view controller and the console prints the results, but when the simulator beggin the tables are emptyclass firs: UIViewController, UITableViewDataSource, UITableViewDelegate, MyCustomCellDelegator { @IBOutlet weak var tablarecibido: UITableView! @IBOutlet weak var tablaenviado: UITableView! let appdelegate = UIApplication.shared.delegate as! AppDelegate var resultsenviadas: [Notificacionesenviadas] = [] var resultsrecibidas: [Notificaciones_entity] = [] var statusr = var emisorr = var nombrer = let cellIdentifier = cellrecibido let cellenviado = cellenviado override func viewDidLoad() { super.viewDidLoad() let savemyprofile = SaveMyProfile() uid = savemyprofile.getUidSesion() self.getNotificacionesRecibidas() self.getNotificacionesEnviadas() self.addNotificaciones() self.tablarecibido.dataSource = self self.tablarecibido.delegate = self self.tablarecibido.register(cellpersonalizada.self, forCellReuseIdentifier: cellrecibido) self.tablaenv
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
564
Feb ’17
Bluetooth CBPeripheralManager has two identical service
I user the code [_peripheralManager stopAdvertising]; [_peripheralManager removeAllServices]; .................................................................... _service = [[CBMutableService alloc]initWithType:[CBUUID UUIDWithString:KServiceUUID] primary:YES]; [_service setCharacteristics:@[readwriteCharacteristic, notiyCharacteristic]]; [_peripheralManager addService:_service]; [_peripheralManager startAdvertising:@{ CBAdvertisementDataServiceUUIDsKey :@[[CBUUID UUIDWithString:advId]], CBAdvertisementDataLocalNameKey : KLocalName, }]; sometimes has has two identical service One of them cannot work, _peripheralManager removeService does not work why? How do I delete that that can t work? thanks
0
0
387
Aug ’22
Reply to Failed to verify your identity. Try Again - Error on AppStore Connect / Developer / SearchAds
I just encounter the problem today. Attempt login to App Store Connect directly on Safari. I got the two-factor code alert, but also the failed to verify message in the browser with nowhere to enter the 2-factor code. I instead went to developer.apple.com and was able to successfully log in there, and then clicked over to App Store Connect successfully.
May ’23
Big Sur beta 2
Noticed that beta 2 is out, but my DTK iMac is not picking up an update. Is that: (a) because I need to install provisioning profile and then download from developer.apple.com (at least initially) as per normal betas or (b) because beta 2 isn't available to Apple Silicon yet, and I just be patient and wait for an update to appear? Regards, D.
1
0
615
Jul ’20
Swift 2 compatibility
Will Swift 2 be keeping iOS7+, OS X 10.9+ compatibility as Swift 1 or dropping any of the older versions? I expect the former but didn't see it explicitly anywhere. Just to avoid surprises.I assume it is still iOS 8+ for including dynamic libraries/frameworks in release product.The above question is for actual release later in App Store not just development environment which as we know can be different (wider or narrower) than what is supported for release.Can someone from Swift team comment/confirm?
0
0
379
Jun ’15
How do you convert and audio file from two (2) channels (stereo) to one channel (1)?
Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app.The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem to be a way to change that.For various reasons, I need the audio format to be only one channel. I was hoping there would be something on iOS to convert the audio file from stereo (two channels) to mono (one channel)Right now, I'm investigating if this is possible using AVAudioEngine and other various related classes. I'm not sure if it's possible and it seems very complicated at the moment.
3
0
2.6k
Feb ’17
can't install more than two of my apps to my iphone
Hi, I've been coding for a little while and recently have wanted to install all of the simple little apps I've made onto my iPhone. I got a apple developer program license but still Xcode will only allow me to install a maximum on two - why is this? I was assuming on getting the license Xcode would just see this and allow me to install more than 2. Any help would be most appreciated.
Topic: Code Signing SubTopic: General Tags:
1
0
238
Aug ’20
Reply to How do I set up key detection
override func keyDown(theEvent: NSEvent!){updateManPosition(theEvent)}func updateManPosition(theEvent:NSEvent){ if theEvent.keyCode == 123 { man.position.x -= 2 } else if theEvent.keyCode == 124 { man.position.x += 2 } else if theEvent.keyCode == 126 { println(jump) }Key Codes : http://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.htmlWould this be correct?
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Mar ’16
Two versions of ViewController?
Hello,I am working my way through the Apple tutorial, Food Tracker.https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ConnectTheUIToCode.html#//apple_ref/doc/uid/TP40015214-CH22-SW1I ran into an error while attempting to create Outlets. i.e. the app would no longer run in the simulatorIt was easy enough to delete the elements on the interface and start over.I am trying to take my time, do every step just as instructed, etc. I am confused by one view I stumble across. It appears like there are two different versions of ViewController. On the left-hand selecting ViewController.swift from the navigator, I see// // // // // // // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }When I select the Assistant Editor, on the right I see// // // // // // // import UIKit internal class ViewController : UIViewController { override inter
2
0
602
Oct ’17
Bad Code
Hello: I have the code below to try to get a random selection from CoreData store. However i'm getting a crash on line 33 with the error:Thread 1: EXC_BAD_ACCESS (code=1, address=0x232). After studying the code for hours, I still can't figure out why the crash. The code actually worked one time!!!let fetchRequest = NSFetchRequest(entityName: TempSCQ) fetchRequest.includesPropertyValues = false var selector = Int() nameGrade = gradeValue.stringValue print (Grade entered is (nameGrade)) func getRandomRecord () { if nameGrade == 2 { selector = Int.random(in: 0 ..< 355) } else if nameGrade == 4 { selector = Int.random(in: 0 ..< 418) } else if nameGrade == 6 { selector = Int.random(in: 0 ..< 375) } else if nameGrade == 8 { selector = Int.random(in: 0 ..< 813) } else if nameGrade == 12 { selector = Int.random(in: 0 ..< 355) } } getRandomRecord() fetchRequest.predicate = NSPredicate(format: qid == %@, selector) //Thread 1: EXC_BAD_ACCESS (code=1, a
Replies
2
Boosts
0
Views
806
Activity
Dec ’19
Two height constraints?
After I update the height of my view I get the following error message in the console: 2022-03-23 18:38:35.093236+0100 Moiree[10522:931302] [Layout] Unable to simultaneously satisfy constraints: ( , ) Will attempt to recover by breaking constraint How can there be two different height constraints? I set the height with self.heightAnchor.constraint(equalToConstant: newValue) Shouldn't that just update the height constraint that is already there? Thanks and regards, Sebastian
Replies
1
Boosts
0
Views
587
Activity
Mar ’22
Two factor authentication
What do I do if I have upgraded to the ios9 beta then down graded and my device is not accepting my applied password and is requesting the code which I am not getting on my trusted device.
Replies
1
Boosts
0
Views
343
Activity
Jul ’15
Keychain sharing and watchos 2
I am using Xcode 7.0 (7A220), targeting iOS 9.0 and watchOS 2.0.I haven't gotten keychain sharing to work in a watchOS 2 app of my own, but it works in this example project, which is part of my question.There is a good talk from NatashaTheRobot (here) where she goes over keychain sharing with watchOS.(Working code from github here), see for yourself that her iOS app and watch app are able to share via keychain in the simulator.Here's what I have done to her project and it still works:Removed the access group string from the KeychainItemWrapper init method. This makes sense because the simulator isn't code signed and the access group gets deleted in KeychainItemWrapper initWithIdentifier: (checkout the comment in initWithIdentifier:)Removed the identifier string from KeychainItemWrapper initWithIdentifier in both view controllersRemoved the keychain-access-groups key from both entitlements that specifies a keychain access group keyYou can remove these three things and keychain sharin
Replies
0
Boosts
0
Views
984
Activity
Sep ’15
2 tableviews in viewcontroller
I have 2 tableviews with the datasource and delegates in a view controller and the console prints the results, but when the simulator beggin the tables are emptyclass firs: UIViewController, UITableViewDataSource, UITableViewDelegate, MyCustomCellDelegator { @IBOutlet weak var tablarecibido: UITableView! @IBOutlet weak var tablaenviado: UITableView! let appdelegate = UIApplication.shared.delegate as! AppDelegate var resultsenviadas: [Notificacionesenviadas] = [] var resultsrecibidas: [Notificaciones_entity] = [] var statusr = var emisorr = var nombrer = let cellIdentifier = cellrecibido let cellenviado = cellenviado override func viewDidLoad() { super.viewDidLoad() let savemyprofile = SaveMyProfile() uid = savemyprofile.getUidSesion() self.getNotificacionesRecibidas() self.getNotificacionesEnviadas() self.addNotificaciones() self.tablarecibido.dataSource = self self.tablarecibido.delegate = self self.tablarecibido.register(cellpersonalizada.self, forCellReuseIdentifier: cellrecibido) self.tablaenv
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
564
Activity
Feb ’17
Bluetooth CBPeripheralManager has two identical service
I user the code [_peripheralManager stopAdvertising]; [_peripheralManager removeAllServices]; .................................................................... _service = [[CBMutableService alloc]initWithType:[CBUUID UUIDWithString:KServiceUUID] primary:YES]; [_service setCharacteristics:@[readwriteCharacteristic, notiyCharacteristic]]; [_peripheralManager addService:_service]; [_peripheralManager startAdvertising:@{ CBAdvertisementDataServiceUUIDsKey :@[[CBUUID UUIDWithString:advId]], CBAdvertisementDataLocalNameKey : KLocalName, }]; sometimes has has two identical service One of them cannot work, _peripheralManager removeService does not work why? How do I delete that that can t work? thanks
Replies
0
Boosts
0
Views
387
Activity
Aug ’22
Obnoxious Two Factor authentication
Is there ANY way to opt out of Two Factor authentication??? If I don't log into the developer web site for a few days, it forces me to use Two Factor authentication again even though I have Remember this browser checked and I haven't changed browsers or PCs. This is VERY annoying. If I log in every day it seems to remember it indefinitely.
Replies
1
Boosts
0
Views
986
Activity
Jan ’20
Reply to Failed to verify your identity. Try Again - Error on AppStore Connect / Developer / SearchAds
I just encounter the problem today. Attempt login to App Store Connect directly on Safari. I got the two-factor code alert, but also the failed to verify message in the browser with nowhere to enter the 2-factor code. I instead went to developer.apple.com and was able to successfully log in there, and then clicked over to App Store Connect successfully.
Replies
Boosts
Views
Activity
May ’23
Big Sur beta 2
Noticed that beta 2 is out, but my DTK iMac is not picking up an update. Is that: (a) because I need to install provisioning profile and then download from developer.apple.com (at least initially) as per normal betas or (b) because beta 2 isn't available to Apple Silicon yet, and I just be patient and wait for an update to appear? Regards, D.
Replies
1
Boosts
0
Views
615
Activity
Jul ’20
Swift 2 compatibility
Will Swift 2 be keeping iOS7+, OS X 10.9+ compatibility as Swift 1 or dropping any of the older versions? I expect the former but didn't see it explicitly anywhere. Just to avoid surprises.I assume it is still iOS 8+ for including dynamic libraries/frameworks in release product.The above question is for actual release later in App Store not just development environment which as we know can be different (wider or narrower) than what is supported for release.Can someone from Swift team comment/confirm?
Replies
0
Boosts
0
Views
379
Activity
Jun ’15
How do you convert and audio file from two (2) channels (stereo) to one channel (1)?
Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app.The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem to be a way to change that.For various reasons, I need the audio format to be only one channel. I was hoping there would be something on iOS to convert the audio file from stereo (two channels) to mono (one channel)Right now, I'm investigating if this is possible using AVAudioEngine and other various related classes. I'm not sure if it's possible and it seems very complicated at the moment.
Replies
3
Boosts
0
Views
2.6k
Activity
Feb ’17
can't install more than two of my apps to my iphone
Hi, I've been coding for a little while and recently have wanted to install all of the simple little apps I've made onto my iPhone. I got a apple developer program license but still Xcode will only allow me to install a maximum on two - why is this? I was assuming on getting the license Xcode would just see this and allow me to install more than 2. Any help would be most appreciated.
Topic: Code Signing SubTopic: General Tags:
Replies
1
Boosts
0
Views
238
Activity
Aug ’20
Reply to How do I set up key detection
override func keyDown(theEvent: NSEvent!){updateManPosition(theEvent)}func updateManPosition(theEvent:NSEvent){ if theEvent.keyCode == 123 { man.position.x -= 2 } else if theEvent.keyCode == 124 { man.position.x += 2 } else if theEvent.keyCode == 126 { println(jump) }Key Codes : http://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.htmlWould this be correct?
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Mar ’16
Reply to execution of c program fail buield fail
That is suggesting you have two `main`s in main.c and test.c. Check your source code.
Replies
Boosts
Views
Activity
May ’20
Two versions of ViewController?
Hello,I am working my way through the Apple tutorial, Food Tracker.https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ConnectTheUIToCode.html#//apple_ref/doc/uid/TP40015214-CH22-SW1I ran into an error while attempting to create Outlets. i.e. the app would no longer run in the simulatorIt was easy enough to delete the elements on the interface and start over.I am trying to take my time, do every step just as instructed, etc. I am confused by one view I stumble across. It appears like there are two different versions of ViewController. On the left-hand selecting ViewController.swift from the navigator, I see// // // // // // // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } }When I select the Assistant Editor, on the right I see// // // // // // // import UIKit internal class ViewController : UIViewController { override inter
Replies
2
Boosts
0
Views
602
Activity
Oct ’17