Xcode stuck at main.m

Hi Team,


I'm using XCode Version 8.2.1 (8C1002). My Xcode project was working fine for many days. When the MacBook was freezing, i had to force restart the MacBook. After that, when running the project in Xcode connected with my iPhone, the app gets stuck at the following line in Main.M file.


int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");


The console shows the following MALLOC error.


malloc: *** error for object pointer being freed was not allocated

*** set a breakpoint in malloc_error_break to debug


When i run the same project using remote connection in my IMac , this error is not there. everything works just fine.


As the same project works fine in other Mac computer and seems more related to MacBook Xcode corruption after force restart, i tried to uninstall the XCode and reinstall it again. But the issue seems to be still there.


Is there any solution to this issue without formatting the MacBook and installing everything again?



Thanks,

Annadurai.

This issue is not yet resolved. Any help is greatly appreciated.


Thanks.

Tried an option-clean?


Hold the option key, then use Xcode's Product menu and choose 'Clean Build Folder'.

You could also try doing what it says -- setting a breakpoint on malloc_error_break so that when it crashes you can tell where it was in your code.

Xcode stuck at main.m
 
 
Q