Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,587 results found

Post

Replies

Boosts

Views

Activity

Reply to LLDB error: type for self cannot be reconstructed: type for typename
There are 3 projects in a workspace. The main project and two separate projects for two static libraries. Both static libs depend on a framework, a regular framework not a XCFramework. Everything is built from scratch, I own all the source code. The code for the framework is in a swift module. I set DWARF with dSYM on all the three projects, it was DWARF only for the libs, but no luck. I can debug the source code from the main project, it works just fine. However, the two static libraries contain the majority of the functionality and I can't debug it. I was adding logs here and there but it takes a lot of time.
Jan ’25
Swift 2 CFType Conversion
In Swift 1.2 I had a C function with the following signature:__nonnull CFArrayRef FDCreateSupportedAudioFileExtensions() CF_RETURNS_RETAINED;I know that this function returns an array of CFStringRef instances, so I called it from Swift like this:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as! [String]and everything worked as expected. However, in Swift 2 this code fails at runtime due to the forced cast (EXC_BAD_INSTRUCTION). I'm able to get things working with the following:let supportedAudioTypes = FDCreateSupportedAudioFileExtensions() as NSArray as! [String]I'm unsure what changed from Swift 1.2 to 2.0. Is this a bug in the current version of Swift or have I missed something? Everything I've read implies that CFTypes are toll-free bridged to their Swift counterparts so I'm not sure why what used to work is now failing.
6
0
971
Aug ’15
Reply to xCode Issue
Thanks for asking Claude. Just hard to highlight it. We are getting this Thread 1: EXC_BAD_ACCESS (code=2, address=0x7fff8647d5c8) with this section of the full code: if (strlen(symbol_name) > 1 && strcmp(&symbol_name[1], cur->rebindings[j].name) == 0) { indirect_symbol_bindings[i] = cur->rebindings[j].replacement; // Thread 1: EXC_BAD_ACCESS (code=2, address=0x7fff8647d5c8) goto symbol_loop;
Jan ’22
COMPARING 2 STRINGS
I am trying to compare two strings and then do something. The first string is a string that is captured in UITextView using the following code:********************************** func updateIncomingData () { NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: Notify), object: nil , queue: nil) { notification in let appendString = n let myFont = UIFont(name: Helvetica Neue, size: 30.0) let myAttributes2 = [NSFontAttributeName: myFont!, NSForegroundColorAttributeName: UIColor.red] let attribString = NSAttributedString(string: + (characteristicASCIIValue as String) + appendString, attributes: myAttributes2) let newAsciiText = NSMutableAttributedString(attributedString: self.consoleAsciiText!) self.password_P_F.attributedText = NSAttributedString(string: characteristicASCIIValue as String , attributes: myAttributes2) newAsciiText.append(attribString) self.consoleAsciiText = newAsciiText self.password_P_F.attributedText = self.consoleAsciiText let pwmatch:String = The p
2
0
584
Sep ’17
AVCaptureFileOutputRecordingDelegate not writing to file, Swift 2
My view controller contains a preview layer, which projects the image from my camera live. When pressing and holding a button, my code is supposed to record a video, and write it to a temporary file locally. This worked well with Swift 1.2 and Xcode 6, but stopped working after I converted the code to Swift 2 when updating to Xcode 7. When I let go of the button, the captureOutput doesn´t get called, and there is no file written to the given path.The relevent code lies here: http://stackoverflow.com/questions/34030277/avcapturefileoutputrecordingdelegate-not-writing-to-file-swift-2 (I couldn't figure out how to paste it here smoothly).I would appreciate any help!
2
0
493
Dec ’15
New 2 step authentication
Curious if those running the older 2 step verification have turned the feature off and back on to try the new 2 step authentication with iOS 9 and OS X 10.11? The Apple public beta document doesn't say much about this so I thought I'd ask here. I'm running the original 2 step verification and would like to give the new version a go but not if folks hae been seeing major issues with the switch. Thanks in advance!
1
0
504
Jul ’15
Optimal way to merge 2 apps
Searching for insight on the best and most compliant way to essentially merge two apps. They have the same functionality but one is much more advanced than the other, although the legacy app has a higher user count. Instead of letting both run, we want to push the legacy app an update with the code from the new app and ultimately kill the newer one. What is the best way to do this? Is it allowed to simply push the source code from new app to legacy and update the identifier? We do not wan't to break any app store rules and want to limit the potential of losing users by forcing them to download a new app.
2
0
1.1k
Dec ’23
Comparing two uiTextFields
Dears,How can I compare if the content of two uiTextFields are different to empty?I was tryting to do something like this but I got the following error: Comparing non-optional value of type 'String' to nil always returns trueoverride func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { self.view.endEditing(true) let apresentacao: String = tfApresentacao.text! let corte: String = tfCorte.text! if apresentacao != nil && corte != nil { calcJornadaTrabalhada() lbEvento.isHidden = false lbTempo.isHidden = false } }Thanks
2
0
742
Oct ’18