Search results for

LLDB crash

29,562 results found

Post

Replies

Boosts

Views

Activity

crash reports from shared code framework
To reduce the size of my application I have recently put the code shared between main app and extensions into a shared framework.I am testing this along with other enchancements for the next version of my app and right now this is just TestFlight builds for my beta testers.I have not received a single crash report (using the built-in crash reporting) since putting the shared code into a embeded framework and it seems unlikely that my beta testers have not experienced any crashes. They even email me to tell me about crashes but when looking at crashes in the XCode Organizer there is nothing.My question is whether anybody knows of this is just a expected consequence of using a shared framework on iOS?Will crash be delivered for the App Store version once I am that far?Is there any build settings I should check to make crash reporting work?Best regards,Anders
1
0
356
Jul ’15
Swift2 : throwing error from init
Hi dev community,I am currently test-driving swift2 on a logging library. Good topic to start with, as it can start simple, and end up much more complex.I am having problems with the init of my objects : I want to be able to create them from a dictionary. But this requires a lot of validation, as dictionaries may be missing some mandatory values, or contain object of a wrong type.Swift provides a way to declare failable init method, by declaring them with a ?. Nice, but returning nil will not be very informative.So to provide feedback, I would like to use the error handling model of swift 2, and throw error from the init with some details about what is wrong with the configuration dictionary.In some cases, it works. But many of my unit tests are crashing, with SIGABRT, and a message in the console : pointer being freed was not allocated.Is it a valid construct to use throw in a init ?If not, I suppose I will have to create an empty object and then update it with the content of the dictionary in anoth
2
0
629
Jul ’15
Reply to Is there a limit to the number of View Controllers for an app?
ahhh donarb, you make me feel better by saying that.Yes, at this stage of the game I just want to get it up running on my iPad and then passing Apple's scrutiny and seeing it up on the app store. It's running on my iPad now, wish me luck on the latter 2 stages.I started for this goal of creating apps 5 years ago. Never got into programming before. Worked from books like the 'For Dummies's' series. For 3 years it was like digging a bottomless pit. Then I finally found a school that taught a crash couse on Objective C. I took it and then I went from groping in the dark to dimly seeing what I was doing. My instructor looked at my plans for this app and thought it was quite original. He told me I would have to use classes that were ment for one type of application and apply them in ways that they weren't coded for. (like using the cam in the iPad for a page in my comic book rather than a camera app). He told me that what I was trying for was 'beyond advanced'. For a small fee, he helped me with the code
Jul ’15
Reply to Cannot add printers
This is a known crasher, the AddPrinter.app program crashes each time you add a new printer (look at your Console when you click on +). I've filed a radar a few weeks ago and Apple marked it as a dupe , so they're aware of this and will issue a fix soon.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Can we get a "try?" as a more lenient "try!"?
As shown at WWDC, Apple divides errors into 3 categories:Trivial errorsInt(someString), etc.Detailed, recoverable errors File not foundNetwork failureUser cancellation, etc.Logic errorsAssertions, overflows, NSException, etc.The presenter says explicitly: Int(someString) can fail, but an optional return type is fine, and in swift ErrorHandler is about the category 2.The Optionals will help trivial errors, and logic errors should crash you app, and you must fix this.I'm ok with that! Except that lack the operator try?! Let me explain:Who said i did not need to know in more detail why Int(someString) failed?That was a developer arbitrary decision based on own experience: In most cases, you just need to know that the parser failed and deal with it. Optionals are more than enough in this case.And I always can promote an error of category 1 to category 2 or even 3.// category 1 if let a = Int(1) { }// category 2 enum DataError : ErrorType { case ParserError } extension String { func toInt() throws -> I
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Can't navigate to add files after Xcode crash
Tonight I inadvertantly changed the name of a directory holding a project while the project was open in XCode.This caused Xcode to crash.When I restarted XCode it crashed again because it tried to re-open the project on startup.Once I put the directory name back to what it was, and restarted xcode, things looked fine until I tried to add a file to a project.The file chooser comes up as normal, but when I click on a directory to navigate to the desired file, instead of opening the directory in the chooser, it just adds the directory to the xcode project.Thinking the crash probably corrupted some xcode system file, I removed and reinstalled Xcode. That did not help.To verify that it was a problem was user related, I created a new user account and ran Xcode there, and it worked fine, I could navigate directories as normal in the file chooser.Has anyone encounered similar navigation problems, and does anyone have a suggestion how I can clear things up for the problem user account?
0
0
77
Jul ’15
Reply to Map Pin title problem
Hi there,After the information you gave me I checked things out a bit further.It appears to be when the Map is loaded.I am getting differing error messages. Please see below.2015-07-06 18:00:00.078 USAShoppingMalls[4481:60b] -[__NSArrayM length]: unrecognized selector sent to instance 0x200a2910(lldb)2015-07-06 18:01:57.798 USAShoppingMalls[4490:60b] -[VGLResourceImpl length]: unrecognized selector sent to instance 0x1d1a9e90(lldb)Everything loads into the array correctly but it crashes when the mapview is displayed.I corrected a code error of 2 off ;; after setting the region.span.longitudeDelta = 7.0f;;.I also get different results depending on whether I load the Mapview and then the Annotations or the Other way around.I am not fully aware of what should be loaded first or if it should be loaded in ViewDidLoad or [super viewDidLoad];Thanks Ossie
Jul ’15
App Crashes when not connected to Xcode iOS 9(beta 2)?
I have installed my app on iOS9 Beta 2 and It doesn't crash when it was run through xcode, as soon as I detach device from the xcode it starts crashing. Below is the crash log, got from the xcode console:TCP Conn 0x1566cf10 released Jul 3 14:43:26 iPhone-5 assertiond[60] : Unable to obtain a task name port right for pid 382: (os/kern) failure (5) Jul 3 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44] : Unable to register for exec notifications: No such process Jul 3 14:43:26 iPhone-5 SpringBoard(BaseBoard)[44] : Unable to obtain a task name port right for pid 382: (os/kern) failure (5) Jul 3 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44] : Unable to obtain a task name port right for ; pid: 382> Jul 3 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44] : Application '{contents = “UIKitApplication:[0x9dc3]}'Any Help would be greatly appreciated.....
0
0
684
Jul ’15
Apple claims the app crashes on startup during review, can't even closely reproduce
Hi. Striggling with that for approximately a month. Apple claims the app crashes on startup, but working for me on devices, simulators, debug/release/adhoc without any problems. Was crashing even on TestFlight testing, after 8 attempts got it accepted for external testers (Crashlytics reported it crashed for them though). The crashes occur in function which saves cached images to the Caches directory. First versions was written using NSSearchPathForDirectoriesInDomains, then I've changed it to NSFileManager but without any luck.The code:class SharedAux { static let shared = SharedAux() func downloadAndCacheImg(url: String?, cell: AppCell, tableView: UITableView, indexPath: NSIndexPath) { if url == nil { return } let charactersToRemove = NSCharacterSet.alphanumericCharacterSet().invertedSet let cacheFilename = .join(url!.componentsSeparatedByCharactersInSet(charactersToRemove)) if let fullFilename = prefixFilenameWithDirectory(cacheFilename), img = UIImage(named: fullFilenam
9
0
2.2k
Jul ’15
Reply to Programmatically pushing from one view controller to the next.
Interesting point junkpile.Maybe you are right. However, I am sure there are many apps made for an iPhone 6 that will not work on the 1st, 2nd or even 3rd generation models. Surely, to prevent users of the app store from being unhappy with an app that won't work well, Apple will allow the maker of the app to mention memory restrictions. I also recall an article that talked about the limits an app has when it comes to how much memory it can take up on the so-called hard disk in iPhones and iPads. They moved it up from 1GB to 3GB! (If my memory serves me correctly)I have an iPhone 4s. Recently, I bought a jawbone UP 24. The app often crashes or shows other glitches on my older modle iPhone. I assumed that it was the age of my iPhone. So I bet that the situation of older models not being able to handle newer apps is common.That said, I'll certainly look into the point you just made and the suggestion of the unwind segue (I remember reading about it a while ago) as well as the setViewControllers:animated
Jul ’15
Reply to EXC_BAD_ACCESS in Swift/ObjC code
Are you compiling with optimization enabled? When optimization is enabled, the compiler does all sorts of tricks that will be confusing if you look at backtraces. Functions are inlined and instantiated, and tail calls are replaced with jumps. Something that you might see is that several crash sites are coalesced into one, which makes it impossible to know where in the code it crashes.There should really be some option to preserve correct crash reporting even when compiling with optimization, at the expense of a few more ud2 instructions, but right now we have to live with the choice between optimization and being able to understand the crashes.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Enterprise Distribution Certificate and Swift
Hello everyone!First of all, sorry for my bad grammar!I have this question and hope somebody can help me.I work in a mexican enterprise, we develop in house apps for sales, etc. and currently we started developing our apps in Swift.Well, the point is that our Distribution Certificate where created in 2013 and the IPAs generated with it crashes when installed in a device.Lurking about the problem, found that we have to re-create the Distribution Certificate and Provisioning Profiles for getting the Swift apps to work, but doing so, all the already distribuited apps will crash sooner or later because of the change in the certs.The question is:Are we doomed to re-create all the provisioning profiles for all the existing apps in Obj-C, archive and re-distribuite them again? or is there another way to get the old apps and the new ones to work simmultaneously (like creating another Dist Cert and sign the new Swift apps with it), for I know, Apple is giving the chance to create a second Dist Cert a
1
0
577
Jul ’15