Skip to content

Instantly share code, notes, and snippets.

@bmichotte
Last active August 29, 2015 14:24
Show Gist options
  • Save bmichotte/4cbebf3fdda0f2e52708 to your computer and use it in GitHub Desktop.
Save bmichotte/4cbebf3fdda0f2e52708 to your computer and use it in GitHub Desktop.
crash
class AppDelegate < PM::Delegate
include CDQ
status_bar :none, animation: :fade
def on_load(app, options)
begin
raise 'You shall not pass'
rescue
puts 'I never goes here'
end
cdq.setup
open HomeScreen.new(:nav_bar => true,
:hide_nav_bar => true)
end
end
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
*** CFRelease() called with NULL ***
CoreSimulator 117.15 - Device: iPad 2 - Runtime: iOS 8.4 (12H141) - DeviceType: iPad 2
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x038400dd CFRelease + 1709
1 my.app.identifier 0x005513b0 rb_vm_backtrace + 320
2 my.app.identifier 0x004f56a9 rb_exception_prepare_bt + 89
3 my.app.identifier 0x00534eaa rb_vm_raise + 26
4 my.app.identifier 0x004324a6 rb_f_raise + 70
5 my.app.identifier 0x0050e9c9 rb_vm_dispatch + 5881
6 my.app.identifier 0x00020fcd vm_dispatch + 1373
7 my.app.identifier 0x003b3c23 rb_scope__on_load:__ + 131
source 'https://rubygems.org'
gem 'rake'
gem 'motion-cocoapods'
gem 'redpotion'
gem 'cdq'
(lldb) bt
* thread #1: tid = 0x1d2ec3, 0x030f10dd CoreFoundation`CFRelease + 1709, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
* frame #0: 0x030f10dd CoreFoundation`CFRelease + 1709
frame #1: 0x00679ac0 JournalDeClasse`rb_vm_backtrace + 320
frame #2: 0x0061ddb9 JournalDeClasse`rb_exception_prepare_bt + 89
frame #3: 0x0065d5ba JournalDeClasse`rb_vm_raise + 26
frame #4: 0x0055abb6 JournalDeClasse`rb_f_raise + 70
frame #5: 0x006370d9 JournalDeClasse`rb_vm_dispatch + 5881
frame #6: 0x000083ad JournalDeClasse`vm_dispatch + 1373
frame #7: 0x005108d3 JournalDeClasse`rb_scope__on_load:__(self=0x0a9357f0, app=<unavailable>, options=<unavailable>) + 131 at app_delegate.rb:8
frame #8: 0x00650ee4 JournalDeClasse`dispatch_rimp_caller(objc_object* (*)(objc_object*, objc_selector*, ...), unsigned long, objc_selector, int, unsigned long const*) + 46452
frame #9: 0x006376b3 JournalDeClasse`rb_vm_dispatch + 7379
frame #10: 0x000083ad JournalDeClasse`vm_dispatch + 1373
frame #11: 0x0045b7c6 JournalDeClasse`rb_scope__application:didFinishLaunchingWithOptions:__(self=0x0a9357f0, application=<unavailable>, launch_options=<unavailable>) + 214 at delegate_module.rb:16
frame #12: 0x0045b9df JournalDeClasse`__unnamed_54 + 95
frame #13: 0x010f6f87 UIKit`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 287
frame #14: 0x010f7d71 UIKit`-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2938
frame #15: 0x010fb3d2 UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
frame #16: 0x011148ee UIKit`__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
frame #17: 0x010f9ffa UIKit`-[UIApplication workspaceDidEndTransaction:] + 155
frame #18: 0x046f6c9e FrontBoardServices`__37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
frame #19: 0x046f672f FrontBoardServices`__40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
frame #20: 0x04708d7c FrontBoardServices`__31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30
frame #21: 0x03154050 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
frame #22: 0x03149963 CoreFoundation`__CFRunLoopDoBlocks + 195
frame #23: 0x031490eb CoreFoundation`__CFRunLoopRun + 971
frame #24: 0x03148a5b CoreFoundation`CFRunLoopRunSpecific + 443
frame #25: 0x0314888b CoreFoundation`CFRunLoopRunInMode + 123
frame #26: 0x010f99b2 UIKit`-[UIApplication _run] + 571
frame #27: 0x010fd0b6 UIKit`UIApplicationMain + 1526
frame #28: 0x00012a39 JournalDeClasse`main(argc=1, argv=0xbfffe39c) + 153 at main.mm:15
frame #29: 0x0426bac9 libdyld.dylib`start + 1
# -*- coding: utf-8 -*-
$:.unshift('/Library/RubyMotion/lib')
require 'motion/project/template/ios'
require 'bundler'
Bundler.require
def icons(app)
app.icons = ['AppIcon']
app.info_plist['UILaunchImages'] = [
{
'UILaunchImageName' => 'Default-Landscape',
'UILaunchImageOrientation' => 'Landscape',
'UILaunchImageMinimumOSVersion' => '7.0',
'UILaunchImageSize' => '{768, 1024}'
}
]
app.info_plist['UILaunchStoryboardName'] = 'LaunchScreen'
end
ENV['device_name'] ||= 'iPad 2'
def appareance(app)
app.info_plist['UIStatusBarHidden'] = true
app.info_plist['UIViewControllerBasedStatusBarAppearance'] = false
#app.info_plist['UIStatusBarStyle'] = 'UIStatusBarStyleLightContent'
end
Motion::Project::App.setup do |app|
app.name = 'my app name'
app.identifier = 'my.app.identifier'
app.release do
app.codesign_certificate = 'iPhone Distribution: me'
app.provisioning_profile = 'adhoc.mobileprovision'
#app.provisioning_profile = 'prod.mobileprovision'
app.entitlements['get-task-allow'] = false
end
app.development do
app.codesign_certificate = 'iPhone Development: me'
app.provisioning_profile = 'dev.mobileprovision'
end
app.short_version = '0.25'
app.version = `git rev-list HEAD --count`.strip
icons app
app.device_family = [:ipad]
app.deployment_target = '7.1'
app.interface_orientations = [:landscape_left, :landscape_right]
appareance(app)
app.files += Dir.glob(File.join(app.project_dir, 'lib/**/*.rb'))
app.resources_dirs += %w(resources/programmes resources/extensions)
app.frameworks = %w(UIKit Foundation CoreGraphics CoreData CoreText QuartzCore AVFoundation MessageUI MobileCoreServices)
app.pods do |pod|
pod 'JMImageCache'
pod 'FontasticIcons'
end
end
task :'build:simulator' => :'schema:build'
*** Starting simulator
(main)>
================================================================================
The application terminated. A crash report file may have been generated by the
system, use `rake crashlog' to open it. Use `rake debug=1' to restart the app
in the debugger.
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment