The Blocker game without audio in Chapter 9 runs successfully on my iPhone 4S running iOS 5.1, but terminates throwing an exception after I add the code for sounds and music. The code in red is highlighted by XCode.
Code:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
I forgot to add - it also crashes when I run it in the simulator.