Reputation: 189
my project is working fine when i not upgrade xcode to ios 6.. but after upgrading i ve this error...
collect2: ld terminated with signal 6 [Abort trap: 6] ld(22918,0x7fff72e6f960) malloc: * error for object 0x7fe300c4d130: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
i tried much to find this on net but dont find any similer problem or any solution.. please need help soon....
Upvotes: 15
Views: 29688
Reputation: 167
Disable thread sanitizer from Edit Scheme -> Run -> Uncheck Thread Sanitizer.
Upvotes: 1
Reputation: 1358
All of a sudden this happens to me as well, clear and build solved my issue.
Upvotes: 8
Reputation: 6553
This is related to updating the UI in a background thread. You should change the UI in the main thread.
Upvotes: 1
Reputation: 697
I encountered the error. And it was caused by the wrong usage of UserDefault
class. As you know, the UserDefault
methods should be executed in the UI thread(main thread) and you are restricted to types to be saved. I called the UserDefault
methods in not main thread and I also tried to save struct
. And then I got message from debugger: terminated due to signal 6. Finally, I made the execution thread the main thread and the type dictionary
. And I overcame this error.
Upvotes: 1
Reputation: 6052
I also got a problem with exit code signal 6. In my case, the problem was, I defined the UIStoryboard
at Build as:
with a iOS
version higher than the UIDevice
I was installing the app.
Maybe you are going to check this, didn't have this problem before, so might be possible it solves yours too.
Here a screenshot where to go inside the File Inspectore
:
Upvotes: 1