Search code examples
xcode4.5

Thread 1 Signal SIGBRT


    #import 

#import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }

This is a thread 1 error that occurs when I press a specific button in the simulator.It crashes and gives this error.


Solution

  • In the Project Navigator, select your Xcode Project file. This will show you the project settings as well as the targets in the project. Look in the "Copy Bundle Resources" Build Phase. You should find the offending files in that list twice. Delete the duplicate reference.

    Xcode is complaining that you are trying to bundle the same file with your application two times.