Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

niits84

macrumors newbie
Original poster
Apr 15, 2008
1
0
Hi,

I am new to Iphone and mac osx development. I created a new cocoa touch app and tried to run on the simulator. I do not understand why there is an error. please help.

path of my code: /Developer/Applications/myapp

code of the app:

//
// main.m
// myapp
//
// Created by Developer on 4/15/08.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import <UIKit/UIKit.h>

int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}

error:
Process: myapp [2364]
Path: /Users/developer/Library/Application Support/iPhone Simulator/User/Applications/F82E35E2-8B00-4E59-B9FB-B8755B802727/myapp.app/myapp
Identifier: myapp
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [217]

Date/Time: 2008-04-15 18:07:15.780 +0200
OS Version: Mac OS X 10.5.2 (9C31)
Report Version: 6

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)'

Thread 0 Crashed:
0 com.apple.CoreFoundation 0x909900f4 ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ + 4
1 libobjc.A.dylib 0x910590fb objc_exception_throw + 40
2 com.apple.CoreFoundation 0x9099002b +[NSException raise:format:arguments:] + 155
3 com.apple.CoreFoundation 0x9099006a +[NSException raise:format:] + 58
4 com.apple.Foundation 0x968b3869 -[NSKeyedUnarchiver initForReadingWithData:] + 3097
5 UIKit 0x30ccf0e5 -[UINib instantiateWithOptions:eek:wner:loadingResourcesFromBundle:] + 118
6 UIKit 0x30cd1246 -[NSBundle(NSBundleAdditions) loadNibNamed:eek:wner:eek:ptions:] + 148
7 UIKit 0x30b26b6b -[UIApplication loadMainNibFile] + 160
8 UIKit 0x30b30dc8 UIApplicationMain + 1200
9 myapp 0x00001c74 main + 102 (main.m:14)
10 myapp 0x00001be2 start + 54

Thread 1:
0 libSystem.B.dylib 0x912959e6 mach_msg_trap + 10
1 libSystem.B.dylib 0x9129d1dc mach_msg + 72
2 com.apple.CoreFoundation 0x909160de CFRunLoopRunSpecific + 1806
3 com.apple.CoreFoundation 0x90916d18 CFRunLoopRunInMode + 88
4 WebCore 0x329c9bb0 RunWebThread + 384
5 libSystem.B.dylib 0x912c6c55 _pthread_start + 321
6 libSystem.B.dylib 0x912c6b12 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0xa00a30f0 ebx: 0x910590dc ecx: 0xa00a21a0 edx: 0x001b5000
edi: 0x0034a410 esi: 0xa0901d88 ebp: 0xbfffee48 esp: 0xbfffee48
ss: 0x0000001f efl: 0x00000286 eip: 0x909900f4 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x0034d000

Binary Images:
0x1000 - 0x1ffc +myapp ??? (???) <efeb1cad586e648945b3fc541e31c9b9> /Users/developer/Library/Application Support/iPhone Simulator/User/Applications/F82E35E2-8B00-4E59-B9FB-B8755B802727/myapp.app/myapp
0x6000 - 0x103ffb +AudioToolbox ??? (???) <36455b74c7de9756249a6877c2446576> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x15d000 - 0x179fea +libJPEG.dylib ??? (???) <9823ed2468070cb32a4f16aba8278e7a> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/ImageIO.framework/libJPEG.dylib
0x181000 - 0x185fff +libGIF.dylib ??? (???) <722f3b0b0fa90b45bee1000ccfff304e> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/ImageIO.framework/libGIF.dylib
0x18b000 - 0x1a6fef +libPng.dylib ??? (???) <7614e71f4f8a171b7797ec5b54662a4d> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/ImageIO.framework/libPng.dylib
0x1ae000 - 0x1aefff +DataMigration ??? (???) <78b525a017770e8b6e67bdc9cdb0b5c9> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x200000 - 0x20aff3 +CoreVideo ??? (???) <0e4300fc2ae43bdda565b9f98af18d63> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
0x213000 - 0x256fe6 +libCGFreetype.A.dylib ??? (???) <3278d4cde7c37df387c7729d8f675f30> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x308c3000 - 0x308cefff +AppSupport ??? (???) <1001ef23b4eb5c364024a16eb5dfdb50> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x30b19000 - 0x30d35ff4 +UIKit ??? (???) <90b69c5013ea6d11e417306ca5441885> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit
0x30fb0000 - 0x311b5fff com.apple.CoreGraphics 1.359.3 (???) <4d7996b4161a6dd4d74b97baa66aa0cc> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x31271000 - 0x31331ff7 +JavaScriptCore ??? (???) <a69d0798eab2a2a9c5de788f7d968e45> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x3166d000 - 0x31675ff9 +GraphicsServices ??? (???) <fe986e4b470fb46b1d7303afe0a780d4> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x316e1000 - 0x31720fe7 +ImageIO ??? (???) <df9115de7236b245d1d1fd3c92e159e6> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/ImageIO.framework/ImageIO
0x31773000 - 0x317b1fef +libTIFF.dylib ??? (???) <aae346a1a3126227cbf754039655359d> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/ImageIO.framework/libTIFF.dylib
0x318b3000 - 0x318b5ffd +IAP ??? (???) <4f737535248dd44f42f3cccb24c97d20> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/IAP.framework/IAP
0x318e0000 - 0x3190bfff +SystemConfiguration ??? (???) <d236b28f489e49a86f491f515fae0fba> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x31b36000 - 0x31b4afff +AddressBook ??? (???) <5faa58edda86494f6ff912a362020e55> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/AddressBook.framework/AddressBook
0x3200c000 - 0x3207bff7 +QuartzCore ??? (???) <3b1fd316ee016941455a597ca75f3143> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x325e7000 - 0x32a4bfff +WebCore ??? (???) <d016bf9aff0b53c421dffb4ac26ff7fe> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x32d01000 - 0x32d70ffd +WebKit ??? (???) <b8b643d0ab57e719620c3155c5632ab9> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x33d18000 - 0x33d1effd +SpringBoardServices ??? (???) <996c42658ef442ffbc392a0937697edb> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x8fe00000 - 0x8fe2da53 dyld 96.2 (???) <7af47d3b00b2268947563c7fa8c59a07> /usr/lib/dyld
0x90708000 - 0x90710fff com.apple.DiskArbitration 2.2.1 (2.2.1) <75b0c8d8940a8a27816961dddcac8e0f> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90711000 - 0x9079dff7 com.apple.LaunchServices 286.5 (286.5) <33c3ae54abb276b61a99d4c764d883e2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x908a4000 - 0x909d6fef com.apple.CoreFoundation 6.5.1 (476.10) <d5bed2688a5eea11a6dc3a3c5c17030e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x91050000 - 0x9112ffff libobjc.A.dylib ??? (???) <a53206274b6c2d42691f677863f379ae> /usr/lib/libobjc.A.dylib
0x91295000 - 0x913f4ff3 libSystem.B.dylib ??? (???) <4899376234e55593b22fc370935f8cdf> /usr/lib/libSystem.B.dylib
0x9150e000 - 0x91539fe7 libauto.dylib ??? (???) <42d8422dc23a18071869fdf7b5d8fab5> /usr/lib/libauto.dylib
0x9161b000 - 0x9161ffff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x91620000 - 0x91665fef com.apple.Metadata 10.5.2 (398.7) <73a6424c06effc474e699cde6883de99> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x92a79000 - 0x92a9dfff libxslt.1.dylib ??? (???) <4933ddc7f6618743197aadc85b33b5ab> /usr/lib/libxslt.1.dylib
0x930a7000 - 0x93132fff com.apple.framework.IOKit 1.5.1 (???) <a17f9f5ea7e8016a467e67349f4d3d03> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x93316000 - 0x93324ffd libz.1.dylib ??? (???) <5ddd8539ae2ebfd8e7cc1c57525385c7> /usr/lib/libz.1.dylib
0x9341e000 - 0x93556ff7 libicucore.A.dylib ??? (???) <afcea652ff2ec36885b2c81c57d06d4c> /usr/lib/libicucore.A.dylib
0x93aa9000 - 0x93aa9ffa com.apple.CoreServices 32 (32) <2fcc8f3bd5bbfc000b476cad8e6a3dd2> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x93c2f000 - 0x93c36ffe libbsm.dylib ??? (???) <d25c63378a5029648ffd4b4669be31bf> /usr/lib/libbsm.dylib
0x93c3a000 - 0x93cb6feb com.apple.audio.CoreAudio 3.1.0 (3.1) <483e0d3879d52ba9ac10b4bcfb0728d6> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x93cc8000 - 0x93d4fff7 libsqlite3.0.dylib ??? (???) <6978bbcca4277d6ae9f042beff643f7d> /usr/lib/libsqlite3.0.dylib
0x93d50000 - 0x93e31ff7 libxml2.2.dylib ??? (???) <450ec38b57fb46013847cce851001a2f> /usr/lib/libxml2.2.dylib
0x9434a000 - 0x943a7ffb libstdc++.6.dylib ??? (???) <04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib
0x943a8000 - 0x94427ff5 com.apple.SearchKit 1.2.0 (1.2.0) <277b460da86bc222785159fe77e2e2ed> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x944f6000 - 0x945b0fe3 com.apple.CoreServices.OSServices 224.4 (224.4) <ff5007ab220908ac54b6c661e447d593> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x94ee8000 - 0x94f1ffff com.apple.SystemConfiguration 1.9.1 (1.9.1) <8a76e429301afe4eba1330bfeaabd9f2> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x9515c000 - 0x95172fff com.apple.DictionaryServices 1.0.0 (1.0.0) <ad0aa0252e3323d182e17f50defe56fc> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x95173000 - 0x951eafe3 com.apple.CFNetwork 221.5 (221.5) <5474cdd7d2a8b2e8059de249c702df9e> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x952c7000 - 0x952f6fe3 com.apple.AE 402.2 (402.2) <e01596187e91af5d48653920017b8c8e> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x963a9000 - 0x96682ff3 com.apple.CoreServices.CarbonCore 785.8 (785.8) <827c228e7d717b397cdb4941eba69553> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x96683000 - 0x9684eff7 com.apple.security 5.0.2 (33001) <0788969ffe7961153219be10786da436> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x9684f000 - 0x96856fe9 libgcc_s.1.dylib ??? (???) <a9ab135a5f81f6e345527df87f51bfc9> /usr/lib/libgcc_s.1.dylib
0x9689f000 - 0x96b19fe7 com.apple.Foundation 6.5.4 (677.15) <6216196287f98a65ddb654d04d773e7b> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0xfffe8000 - 0xfffebfff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
 

mpramodjain

macrumors regular
Nov 20, 2008
152
0
Banglore
mach_msg

I am also having the following error regarding mach_msg , do any one know why this error occurs and how to resolve this..


#0 0x91ab54a6 in mach_msg_trap ()
#1 0x91abcc9c in mach_msg ()
#2 0x95b9f0ce in CFRunLoopRunSpecific ()
#3 0x95b9fcf8 in CFRunLoopRunInMode ()
#4 0x31699d38 in GSEventRunModal ()
#5 0x31699dfd in GSEventRun ()
#6 0x30a5dadb in -[UIApplication _run] ()
#7 0x30a68ce4 in UIApplicationMain ()

pls reply if any had resolved the issuee...thank u..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.