This is very wired, after new ios release my app is crashing immediately after opening. No crash log no clues, nothing.
If anyone know about this issue and fixed before, please help.
Any help will be appreciated.
Thanks
Check your View connection, if you work on storyboard then check Option like:-- View Controller option n select "IS INITIAL VIEW CONTROLLER" option n check once
Related
I am getting random crashes while pushing to another view controller.
It was too difficult to find out such a crash, we spent the almost 2-3 days to solve this issue. seems like the crash was due to the one extra view outlet got connected to the main view in the storyboard. Which created the nil reference for some objects of the view controller and applications crashes.
But something surprising to us that how Xcode allowing me to connect the two outlets to the main view. I have again tried connecting the same but this time it is not allowing me to connect. Attaching the screenshot for the same.
Any kind of help/explanation is appreciated.
Please add crash logs. We should check them. Theres any data moving between two ViewControllers
It is problem with Xcode sometimes while editing the outlets.Find the controller on which app crashes and reconnect the outlets and run again.I don't know the exact reason but that solve my problem.
I've added breakpoint in ViewDidLoad but when code execute and stop on breakpoint then it shows wrong window (Thread Window) instead of in Code.
showing thread window
I've Xcode 8.3.3 and I think this may be some issue in setting or may be something else, kindly guide me where i did wrong ?
Looking for help. Thanks
After hit and try I finally found solution, I did wrong and mistakenly check Allow Show Disassembly.
Allow Show Disassembly should be unchecked.
Hope this will help others too.
I currently have multiple views open as children to my navigation controller through the method navigation controller.push(). When you rotate the device it automatically goes back all the way to the root view controller, as if you called poptorootview().
I am wondering why it is doing this and how to stop this from happening. I have not modified UINavigationController class in any way.
Thank you!
In case anyone else is looking for any workaround .I had this really annoying issue in iOS 11.1 only but everything was looking good in iOS 10 and below.
Finally I got it fixed by updating my Xcode to 9.2 and the problem has been disappeard, still I have no idea what caused that, but it take 3 days to me to get rid of it!
i am making a very complicated app with a lot of classes.
my app worked great and i worked on it for the last month.
the last time i worked on it i added a function and it worked great, i saved the app and ran it a few times since and it worked. the last time i turned my computer on, it prompted me that an update for xcode is available. i updated it, and since then every time i run my app it runs with no errors but on ios simulator it shows a black screen. what can i do? i worked really hard on that app. thanks for the help in advance.
There's few issues that could happened, withou detailed description of this issue, you can try following solutions:
reset simulator
check if your initial controller is set up in storyboard(select controller and press attribute inspector, select is initial view controller):
if you're setting initial view controller programmatically, check if that controller is not nil in app delegate
another tip - try to use UI debugger, that helps a lot:
Any debug messages in the Xcode output? That usually will give a clue.
One thing I can think of, is that in your
- (void) applicationDidFinishLaunching:(UIApplication*)application
delegate, try setting the window's root view controller to your view controller. Example:
[window setRootViewController:viewController];
[window makeKeyAndVisible];
Again, the Xcode debug output will confirm if this is indeed the case though.
Now I am using the XCode 7. But sometimes controller property windows is empty. In these situation I need to restart the pc. Then only it is showing the property. Anyone know the solution. (In this picture I selected the label, button and viewcontroller)
I've experienced this a few times. I always went to launchscreen.storyboard and it usually helped. If not, try restarting Xcode (or even your computer). Sometimes I had to do all of this a few times to make the inspectors show again.
Now I found the solution. Just close storyboard and clear the drivedata then it is showing. But I don't know the reason.