Skip to content

Instantly share code, notes, and snippets.

@tosik
Created October 12, 2012 09:59
Show Gist options
  • Select an option

  • Save tosik/3878488 to your computer and use it in GitHub Desktop.

Select an option

Save tosik/3878488 to your computer and use it in GitHub Desktop.
/Users/hirooka/prog% motion create hello
Create hello
Create hello/.gitignore
Create hello/Rakefile
Create hello/app
Create hello/app/app_delegate.rb
Create hello/resources
Create hello/spec
Create hello/spec/main_spec.rb
/Users/hirooka/prog% cd hello
/Users/hirooka/prog/hello% rake --trace
** Invoke default (first_time)
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
/usr/bin/env VM_KERNEL_PATH="/Library/RubyMotion/data/6.0/iPhoneSimulator/kernel-i386.bc" VM_OPT_LEVEL="0" /Library/RubyMotion/bin/ruby --us
es-bs "/Library/RubyMotion/data/6.0/BridgeSupport/RubyMotion.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/UIKit.bri
dgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreVideo.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeS
upport/CoreImage.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/Security.bridgesupport" --uses-bs "/Library/RubyMoti
on/data/6.0/BridgeSupport/Foundation.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreGraphics.bridgesupport" --us
es-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreFoundation.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/Image
IO.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/QuartzCore.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/
BridgeSupport/CoreText.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/MobileCoreServices.bridgesupport" --uses-bs "/
Library/RubyMotion/data/6.0/BridgeSupport/CFNetwork.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/Accelerate.bridges
upport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/SystemConfiguration.bridgesupport" --emit-llvm "./build/iPhoneSimulator-6.0-
Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.i386.bc" MREP_5BEC269EDD0E44B19C743D6CBAB69C91 "/Users/hirooka/prog/hello/app/
app_delegate.rb"
/Library/RubyMotion/bin/llc "./build/iPhoneSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.i386.bc" -o="./build/
iPhoneSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.i386.s" -march=x86 -relocation-model=pic -disable-fp-elim
-jit-enable-eh -disable-cfi
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -fexceptions -c -arch i386 "./build/iPho
neSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.i386.s" -o "./build/iPhoneSimulator-6.0-Development/objs/Users
/hirooka/prog/hello/app/app_delegate.rb.i386.o"
/usr/bin/lipo -create "./build/iPhoneSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.i386.o" -output "./build/iP
honeSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.o"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ "./build/iPhoneSimulator-6.0-Development/objs
/init.mm" -arch i386 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator
6.0.sdk" -miphoneos-version-min=6.0 -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim
ulator6.0.sdk/System/Library/Frameworks -fexceptions -fblocks -fobjc-legacy-dispatch -fobjc-abi-version=2 -c -o "./build/iPhoneSimulator-6.0
-Development/objs/init.o"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ "./build/iPhoneSimulator-6.0-Development/objs
/main.mm" -arch i386 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator
6.0.sdk" -miphoneos-version-min=6.0 -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSim
ulator6.0.sdk/System/Library/Frameworks -fexceptions -fblocks -fobjc-legacy-dispatch -fobjc-abi-version=2 -c -o "./build/iPhoneSimulator-6.0
-Development/objs/main.o"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o "./build/iPhoneSimulator-6.0-Development/h
ello.app/hello" "./build/iPhoneSimulator-6.0-Development/objs/init.o" "./build/iPhoneSimulator-6.0-Development/objs/main.o" "/Library/RubyMo
tion/data/6.0/iPhoneSimulator/UIKit_stubs.o" "/Library/RubyMotion/data/6.0/iPhoneSimulator/Foundation_stubs.o" "/Library/RubyMotion/data/6.0
/iPhoneSimulator/CoreGraphics_stubs.o" "/Library/RubyMotion/data/6.0/iPhoneSimulator/CoreFoundation_stubs.o" "/Library/RubyMotion/data/6.0/i
PhoneSimulator/CFNetwork_stubs.o" "./build/iPhoneSimulator-6.0-Development/objs/Users/hirooka/prog/hello/app/app_delegate.rb.o" -arch i386 -
isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk" -miphoneos-ve
rsion-min=6.0 -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/L
ibrary/Frameworks -L/Library/RubyMotion/data/6.0/iPhoneSimulator -lmacruby-static -lobjc -licucore -framework UIKit -framework CoreVideo -f
ramework CoreImage -framework Security -framework Foundation -framework CoreGraphics -framework CoreFoundation -framework ImageIO -framework
QuartzCore -framework CoreText -framework MobileCoreServices -framework CFNetwork -framework Accelerate -framework SystemConfiguration
/usr/bin/plutil -convert binary1 "./build/iPhoneSimulator-6.0-Development/hello.app/Info.plist"
/usr/bin/dsymutil "./build/iPhoneSimulator-6.0-Development/hello.app/hello" -o "./build/iPhoneSimulator-6.0-Development/hello.dSYM"
warning: no debug symbols in executable (-arch i386)
** Execute simulator
DYLD_FRAMEWORK_PATH="/Applications/Xcode.app/Contents/Developer/../Frameworks":"/Applications/Xcode.app/Contents/Developer/../OtherFramework
s" /Library/RubyMotion/bin/sim 2 1 6.0 "/Applications/Xcode.app/Contents/Developer" "./build/iPhoneSimulator-6.0-Development/hello.app"
^Crake aborted!
Command failed with status (1): [DYLD_FRAMEWORK_PATH="/Applications/Xcode.a...]
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Library/RubyMotion/lib/motion/project.rb:101:in `block in <top (required)>'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/hirooka/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/hirooka/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@monval/bin/ruby_noexec_wrapper:14:in `eval'
/Users/hirooka/.rvm/gems/ruby-1.9.3-p194@monval/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => simulator
/Users/hirooka/prog% motion -v
1.26
@tosik
Copy link
Author

tosik commented Oct 12, 2012

@tosik
Copy link
Author

tosik commented Oct 12, 2012

^Crake aborted! しないとそのまま止まって一向に進まないし、iOS Simulator のプロセスは動いてるがウィンドウが出てこない。

@tosik
Copy link
Author

tosik commented Oct 12, 2012

ちなみに、Xcode では正常に iOS Simulator を起動できる。

@Watson1978
Copy link

ちなみに CPU 使用率とかはどうなっているのでしょう?

ちょっとログだけじゃわからないので、

DYLD_FRAMEWORK_PATH="/Applications/Xcode.app/Contents/Developer/../Frameworks":"/Applications/Xcode.app/Contents/Developer/../OtherFrameworks" gdb --args /Library/RubyMotion/bin/sim 2 1 6.0 "/Applications/Xcode.app/Contents/Developer" "./build/iPhoneSimulator-6.0-Development/hello.app"

と gdb を起動し

(gdb) r

で実行してみてください。応答しなくなったときに CTRL + C で中断し、

(gdb) bt

でバックトレースを取っていただけませんでしょうか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment