Application crash immediately when deploy to iPhone running iOS 12 from Xcode 10 - objective-c

App submitted to store one year ago. It worked fine up to iOS 11 but in iOS 12 the app is immediately crashing even without launching. I tried to debug the issue but I couldn't, because before didFinishLaunchingWithOptions, the app crashes and I did not find any error logs.
It is happening in iOS 12 only, working fine with below iOS 12.
How can I debug this issue?

Have you correctly installed your XCode Update? Sometimes you have to install cli
(that is needed e.g. by mtouch if XCode links your assemblies) or other components by hand.
Are you're credentials (certificate) still valid? or otherwise asked: did you build another app since this happens?
Have you set a breakpoint right in you app delegate and step throw until the app crashes? Can you show logs? If you don't have some, than create them by yourself. Do exception handling and log the exceptions. Or otherwise said: More information please.

Related

Said yes to auto-upgrade changes from XCode 7 app to XCode 8, now app won't build

I took a running app that was built under XCode7 and since I'm going to make some updates to it, did a build with XCode 8. After the first build (it was successful), I got a series of "suggestions" that XCode 8 wanted to automatically make for the app. Since I've never had problems doing that, I clicked OK and did another build under XCode 8. Now my app won't link properly! (It's happening on two separate apps, both using Crashlytics and Ensembles)
How can I backout the changes that were automatically made to the app by XCode 8?
If you are using source control with your project, you can go back to the last committed state of your .xcodeproj file. Maybe this is not too far away from the state right before you switched to Xcode 8.

EXC_BAD_ACCESS at random location iOS 9

I am facing an issue with iOS 9. My app crashes randomly with EXC_BAD_ACCESS at random location. I tried using the debugger and putting breakpoints to check for any errors.Also tried with exception breakpoints but to no help. My app runs fine on iOS 8.4 and below without any error.
I tried enabling Zombie Objects.On enabling them the App does not crashes till it is connected with the computer for debugging. As soon as the cable is disconnected the app starts crashing.
Also while debugging with Zombie Object with or without breakpoints I don't get any crashes or exception or any log on the console.
If anymore information is required please revert back .
There is a bunch of questions like this one and no general answer since the problem is that it can be caused by numerous reasons. I believe that in my case it was a bug because it has happened on random places. Luckily for me to clean a project has helped me.
So hit Shift+CMD+K and believe.

Xcode crashes immediately before running on device

(I just noticed this error and fixed it myself. Nonetheless I think it would be helpful to share the fix.)
My Xcode crashed every time when it finished compiling the app and tried to run on a device (iPhone, iPad). Nothing happened on the device. However, Xcode didn't crash the last time I ran the app (about 3 days earlier).
The app ran fine with Simulator though.
So the reason was that my developer certificate has just expired yesterday. After re-requesting the certificate and importing it, the app runs again on device. Sadly Xcode didn't issue any error messages about it.

iOS application crash when started

I have such problem
I am making an application with xcode 4.3.1 iOS 4.0 as target.
I have default picture as starting image.
I am using core data.
When I start application then type some info into it and then push it to background. Its all ok. If I try to start after I went to background it become crash after start image is loaded. Second launch is good without crashes. When I try to start application with some delay it does not crash.
The problem that I have no errors in debbuger and no logs about crash in iPod. All seems well.
If you had such problems, please say how you fix this issue.
P.S. Sorry for my English
You can try using logs and check out Xcode's organizer's console for your device so you can get additional info about functions that were called last.

Cannot Install into iPhone Simulator

I've got an Xcode project that I've been working on over the past few weeks.
I just made some changes to an embedded framework that I'm working on (recompiled, to be specific) now, however, I am unable to launch the application in the simulator.
The app hangs on "Attaching to [app name]," if I have a debugger on. If I don't have a debugger on, Xcode just says the app has finished running.
There is no icon installed on the device.
Here's what I've done so far:
Restarted
Reset simulator
Clean and build
Deleted derrived data
I cannot install onto a device either, but then I get an error:
Error launching remote program: No such file or directory (/Users/peter/Library/Developer/Xcode/DerivedData/x-gtwuuwmavjonyrcxjmpcletdpyjw/Build/Products/Debug-iphoneos/x.app/x).
Oddly enough, what worked was installing another app in the sim (just launched another project and ran it) and then launching the other app in the sim.
I'm not sure what the issue was, but I tried it on two computers and it was hanging on each, so it was related to the project rather than the simulator. There's an issue to think about...