iphone - SIGABRT error when running on iPad -
all. i've been banging head few hours because of problem. have universal project that's mix of iphone , ipad projects. put these codebases universal project and, after lot of "#if __iphone_os_version_min_required >= 30200
" checks, got project run in both iphone (os 3.0 3.1.3) , ipad simulators. after doing more finagling project settings of external libraries load, got app load on iphone (which runs os 3.1.3).
however, when run app on ipad, immediate sigabrt error. i've tried running under debug, under release, active architecture of both armv6 , armv7. i've checked , double-checked app has right nib files set (but, again, app runs fine in simulator). i've gone through external libraries i'm using , set them have same base sdk (3.2), same architectures (optimized (armv6 armv7)), same targeted device family (iphone/ipad), , same iphone os deployment target (iphone os 3.0).
so, summarize... have universal app works in simulator iphone , ipad, runs on actual iphone, doesn't run on ipad. doesn't far on ipad -- there's immediate sigabrt error stops execution. help??
edit following jason's suggestion below, here's stack trace of app:
#0 0x30c8e0a0 in __kill () #1 0x30c8e096 in kill () #2 0x30c8e088 in raise () #3 0x30ca2210 in abort () #4 0x32944a22 in __gnu_cxx::__verbose_terminate_handler () #5 0x335657ca in _objc_terminate () #6 0x32942df4 in __cxxabiv1::__terminate () #7 0x32942e48 in std::terminate () #8 0x32942f18 in __cxa_throw () #9 0x335646aa in objc_exception_throw () #10 0x32c91c9c in -[nsexception raise] () #11 0x32b57db2 in -[nsobject(nskeyvaluecoding) setvalue:forundefinedkey:] () #12 0x32b1b9da in _nssetusingkeyvaluesetter () #13 0x32b1ae40 in -[nsobject(nskeyvaluecoding) setvalue:forkey:] () #14 0x32b1adac in -[nsobject(nskeyvaluecoding) setvalue:forkeypath:] () #15 0x315db6b6 in -[uiruntimeoutletconnection connect] () #16 0x32c27bc6 in -[nsobject performselector:] () #17 0x32c25a18 in -[nsarray makeobjectsperformselector:] () #18 0x315d5746 in -[uinib instantiatewithoptions:owner:loadingresourcesfrombundle:] () #19 0x315d53c0 in -[nsbundle(nsbundleadditions) loadnibnamed:owner:options:] () #20 0x314d5d50 in -[uiapplication _loadmainnibfile] () #21 0x314d5a7e in -[uiapplication _runwithurl:payload:launchorientation:] () #22 0x31521962 in -[uiapplication handleevent:withnewevent:] () #23 0x315212e0 in -[uiapplication sendevent:] () #24 0x31520d2a in _uiapplicationhandleevent () #25 0x30d62b32 in purpleeventcallback () #26 0x32c23d9c in cfrunlooprunspecific () #27 0x32c234e0 in cfrunloopruninmode () #28 0x314d54a8 in -[uiapplication _run] () #29 0x314d39f2 in uiapplicationmain () #30 0x00002f62 in main (argc=1, argv=0x2ffff5d8)
as can see, doesn't out of main function in main.m.
this looks have connections in main nib-file points non-existing outlets in code being loaded. make sure load nib-file match platform , in synch code being loaded.
if removing outlets in code means of #if __iphone_...
make sure don't have nib-file trying reference outlet.
Comments
Post a Comment