Modules Not included in AdHoc Release Builds?

You must Login before you can answer or comment on any questions.

I'm trying to do an iOS adhoc release for internal review. My application continuously crashes when it hits a piece of code which includes a titanium module.

Am I compiling incorrectly?

I'm able to to development builds to my device and simulator just fine. Here's the crash report from the device:

— asked 1 year ago by Joe Longstreet
5 Comments
  • Crash Report:

    Incident Identifier: B4FC3087-9411-4334-BF0D-EB9A724049D8 CrashReporter Key: a194e2b2fb7c379d8d6d0fde2679eb57f6ea1411 Hardware Model: iPhone4,1 Process: Ampd [19740] Path: /var/mobile/Applications/5A6478F7-224F-4B9E-AC00-12ED02E9E22E/Ampd.app/Ampd Identifier: Ampd Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1]

    Date/Time: 2012-04-18 11:46:11.459 -0500 OS Version: iPhone OS 5.1 (9B179) Report Version: 104

    Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 0

    Last Exception Backtrace: 0 CoreFoundation 0x3732388f exceptionPreprocess + 163 1 libobjc.A.dylib 0x35829259 objc_exception_throw + 33 2 CoreFoundation 0x37323789 +[NSException raise:format:] + 1 3 CoreFoundation 0x373237ab +[NSException raise:format:] + 35 4 UIKit 0x33c47437 -[UINib instantiateWithOwner:options:] + 1567 5 UIKit 0x33bb54b3 -[UIViewController _loadViewFromNibNamed:bundle:] + 247 6 UIKit 0x33a92e01 -[UIViewController loadView] + 89 7 UIKit 0x33a08dbf -[UIViewController view] + 51 8 UIKit 0x33a15391 -[UIViewController contentScrollView] + 25 9 UIKit 0x33a15201 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 37 10 UIKit 0x33a150e7 -[UINavigationController _layoutViewController:] + 35 11 UIKit 0x33a14969 -[UINavigationController _startTransition:fromViewController:toViewController:] + 501 12 UIKit 0x33a146ab -[UINavigationController _startDeferredTransitionIfNeeded] + 251 13 UIKit 0x33a1456b -[UILayoutContainerView layoutSubviews] + 179 14 UIKit 0x339d30bd -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 149 15 CoreFoundation 0x372821fb -[NSObject performSelector:withObject:] + 43 16 QuartzCore 0x3425aaa5 -[CALayer layoutSublayers] + 217 17 QuartzCore 0x3425a6bd CA::Layer::layout_if_needed(CA::Transaction*) + 217 18 QuartzCore 0x3425e843 CA::Context::commit_transaction(CA::Transaction*) + 227 19 QuartzCore 0x3425e57f CA::Transaction::commit() + 315 20 QuartzCore 0x34286911 CA::Transaction::flush() + 45 21 QuartzCore 0x342868e3 +[CATransaction flush] + 35 22 UIKit 0x339de159 _afterCACommitHandler + 53 23 CoreFoundation 0x372f7b1b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 19 24 CoreFoundation 0x372f5d57 __CFRunLoopDoObservers + 259 25 CoreFoundation 0x372f60b1 __CFRunLoopRun + 761 26 CoreFoundation 0x372794a5 CFRunLoopRunSpecific + 301 27 CoreFoundation 0x3727936d CFRunLoopRunInMode + 105 28 GraphicsServices 0x32186439 GSEventRunModal + 137 29 UIKit 0x339fde7d UIApplicationMain + 1081 30 Ampd 0x00003657 main (main.m:36) 31 Ampd 0x00003090 0x1000 + 8336

    Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x357a232c __pthread_kill + 8 1 libsystem_c.dylib 0x318f0208 pthread_kill + 48 2 libsystem_c.dylib 0x318e9298 abort + 88 3 libc++abi.dylib 0x34ef5f64 abort_message + 40 4 libc++abi.dylib 0x34ef3346 _ZL17default_terminatev + 18 5 libobjc.A.dylib 0x35829350 _objc_terminate + 140 6 libc++abi.dylib 0x34ef33be _ZL19safe_handler_callerPFvvE + 70 7 libc++abi.dylib 0x34ef344a std::terminate() + 14 8 libc++abi.dylib 0x34ef481e __cxa_rethrow + 82 9 libobjc.A.dylib 0x358292a2 objc_exception_rethrow + 6 10 CoreFoundation 0x37279506 CFRunLoopRunSpecific + 398 11 CoreFoundation 0x37279366 CFRunLoopRunInMode + 98 12 GraphicsServices 0x32186432 GSEventRunModal + 130 13 UIKit 0x339fde76 UIApplicationMain + 1074 14 Ampd 0x00003650 main (main.m:36) 15 Ampd 0x00003088 0x1000 + 8328

    Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x357923a8 kevent + 24 1 libdispatch.dylib 0x3457cf04 _dispatch_mgr_invoke + 708 2 libdispatch.dylib 0x3457cc22 _dispatch_mgr_thread + 30

    Thread 2 name: WebThread Thread 2: 0 libsystem_kernel.dylib 0x35792004 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x357921fa mach_msg + 50 2 CoreFoundation 0x372f73ec __CFRunLoopServiceMachPort + 120 3 CoreFoundation 0x372f6124 __CFRunLoopRun + 876 4 CoreFoundation 0x3727949e CFRunLoopRunSpecific + 294 5 CoreFoundation 0x37279366 CFRunLoopRunInMode + 98 6 WebCore 0x32f390f0 _ZL12RunWebThreadPv + 396 7 libsystem_c.dylib 0x318b172e _pthread_start + 314 8 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 3 name: KrollContext<kroll$1> Thread 3: 0 libsystem_kernel.dylib 0x357a2068 psynch_cvwait + 24 1 libsystem_c.dylib 0x318b1a70 _pthread_cond_wait + 676 2 libsystem_c.dylib 0x318b5a42 pthread_cond_timedwait_relative_np + 10 3 Foundation 0x37af12fa -[NSCondition waitUntilDate:] + 310 4 Ampd 0x000267b0 -[KrollContext main] (KrollContext.mm:1258) 5 Foundation 0x37acea7a -[NSThread main] + 66 6 Foundation 0x37b6258a __NSThread__main + 1042 7 libsystem_c.dylib 0x318b172e _pthread_start + 314 8 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 4 name: com.apple.coremedia.player.async Thread 4: 0 libsystem_kernel.dylib 0x357a2068 __psynch_cvwait + 24 1 libsystem_c.dylib 0x318b1a46 _pthread_cond_wait + 634 2 libsystem_c.dylib 0x318b17c2 pthread_cond_wait + 34 3 CoreMedia 0x34141868 FigSemaphoreWaitRelative + 268 4 MediaToolbox 0x3594e3e6 fpa_AsyncMovieControlThread + 22 5 CoreMedia 0x341608b4 figThreadMain + 168 6 libsystem_c.dylib 0x318b172e _pthread_start + 314 7 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 5: 0 libsystem_kernel.dylib 0x35792004 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x357921fa mach_msg + 50 2 CoreFoundation 0x372f73ec CFRunLoopServiceMachPort + 120 3 CoreFoundation 0x372f6124 __CFRunLoopRun + 876 4 CoreFoundation 0x3727949e CFRunLoopRunSpecific + 294 5 CoreFoundation 0x372f6444 CFRunLoopRun + 92 6 Ampd 0x00015e74 +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4822) 7 Foundation 0x37acea7a -[NSThread main] + 66 8 Foundation 0x37b6258a __NSThread__main + 1042 9 libsystem_c.dylib 0x318b172e _pthread_start + 314 10 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 6 name: com.apple.NSURLConnectionLoader Thread 6: 0 libsystem_kernel.dylib 0x35792004 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x357921fa mach_msg + 50 2 CoreFoundation 0x372f73ec CFRunLoopServiceMachPort + 120 3 CoreFoundation 0x372f6124 __CFRunLoopRun + 876 4 CoreFoundation 0x3727949e CFRunLoopRunSpecific + 294 5 CoreFoundation 0x37279366 CFRunLoopRunInMode + 98 6 Foundation 0x37acebb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302 7 Foundation 0x37acea7a -[NSThread main] + 66 8 Foundation 0x37b6258a __NSThread__main + 1042 9 libsystem_c.dylib 0x318b172e _pthread_start + 314 10 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 7 name: com.apple.CFSocket.private Thread 7: 0 libsystem_kernel.dylib 0x357a2570 __select + 20 1 CoreFoundation 0x372fb63a __CFSocketManager + 726 2 libsystem_c.dylib 0x318b172e _pthread_start + 314 3 libsystem_c.dylib 0x318b15e8 thread_start + 0

    Thread 8: 0 libsystem_kernel.dylib 0x357a2cd4 __workq_kernreturn + 8 1 libsystem_c.dylib 0x318abf36 _pthread_wqthread + 610 2 libsystem_c.dylib 0x318abcc8 start_wqthread + 0

    Thread 9: 0 libsystem_kernel.dylib 0x357a2cd4 __workq_kernreturn + 8 1 libsystem_c.dylib 0x318abf36 _pthread_wqthread + 610 2 libsystem_c.dylib 0x318abcc8 start_wqthread + 0

    Thread 10: 0 libsystem_kernel.dylib 0x357a2cd4 __workq_kernreturn + 8 1 libsystem_c.dylib 0x318abf36 _pthread_wqthread + 610 2 libsystem_c.dylib 0x318abcc8 start_wqthread + 0

    — commented 1 year ago by Joe Longstreet

  • This also happens with common.js modules.... :(

    — commented 1 year ago by Joe Longstreet

  • What version of the Titanium SDK are you using?

    — commented 1 year ago by Varun Joshi

  • Show 2 more comments

2 Answers

From everything I've seen on the Q&A it looks like Ad Hoc distribution is either broken or just isn't supported. Can we call this the official Titanium answer - http://developer.appcelerator.com/question/3441/ad-hoc-profiles#answer-7411

Of the two modules I was using in my project, it turns out that both were causing separate issues that cause the release build to crash.

On a separate note, Appcelerator should make it much more clear that building from Titanium Studio is essential for build build to work properly.

Your Answer

Think you can help? Login to answer this question!