motion-plot icon indicating copy to clipboard operation
motion-plot copied to clipboard

examples do not work?

Open Jacubeit opened this issue 11 years ago • 5 comments

could you confirm, motion-plot examples (and the gem in general) do not work with: RM 2.14, iOS 7, Core-Plot 1.4

Thanks

Jacubeit avatar Nov 03 '13 19:11 Jacubeit

I guess you've figured it out, as you've created your sample app:

https://github.com/Jacubeit/core-plot-example

But for those who struggle with the examples and want instant gratification, this is required:

rake pod:install
rake

dotemacs avatar Apr 25 '14 19:04 dotemacs

I'm having the same problem, when I rake the app crashes with the following error:

rake
Generating Data Model pushup
   Loading schemas/0001_initial.rb
   Writing resources/pushup.xcdatamodeld/0001 initial.xcdatamodel/contents
     Build ./build/iPhoneSimulator-7.1-Development
     Build /Users/user/.rvm/gems/ruby-2.1.0/gems/cdq-0.1.8/lib/../vendor/cdq/ext
   Compile ./app/user/chart_screen.rb
      Link ./build/iPhoneSimulator-7.1-Development/pushup.app/pushup
   Compile ./resources/pushup.xcdatamodeld
    Create ./build/iPhoneSimulator-7.1-Development/pushup.app/Info.plist
      Copy ./resources/pushup.momd
      Copy ./resources/pushup.momd/0001 initial.mom
      Copy ./resources/pushup.momd/0001 initial.omo
      Copy ./resources/pushup.momd/VersionInfo.plist
    Create ./build/iPhoneSimulator-7.1-Development/pushup.dSYM
  Simulate ./build/iPhoneSimulator-7.1-Development/pushup.app
DYLD_FRAMEWORK_PATH="/Applications/Xcode.app/Contents/Developer/../Frameworks":"/Applications/Xcode.app/Contents/Developer/../OtherFrameworks" /Library/RubyMotion/bin/ios/sim 2 1 "iPhone Retina (4-inch)" 7.1 "/Applications/Xcode.app/Contents/Developer" "./build/iPhoneSimulator-7.1-Development/pushup.app"
(main)> 2014-06-10 10:45:07.488 pushup[43746:70b] uninitialized constant MotionPlot::Theme::KCPTDarkGradientTheme (NameError)
2014-06-10 10:45:07.493 pushup[43746:70b] *** Terminating app due to uncaught exception 'NameError', reason: 'uninitialized constant MotionPlot::Theme::KCPTDarkGradientTheme (NameError)
'
*** First throw call stack:
(
    0   CoreFoundation                      0x02a141e4 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00a818e5 objc_exception_throw + 44
    2   pushup                              0x006fb82a _ZL10__vm_raisev + 346
    3   pushup                              0x006fb908 rb_vm_raise + 216
    4   pushup                              0x005fee71 rb_exc_raise + 17
    5   pushup                              0x005f86b7 rb_name_error + 135
    6   pushup                              0x006b4285 rb_mod_const_missing + 165
    7   pushup                              0x006f068d _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
    8   pushup                              0x006d70aa rb_vm_dispatch + 6554
    9   pushup                              0x006b50f6 rb_const_get_0 + 1046
    10  pushup                              0x006b51f0 rb_const_get + 32
    11  pushup                              0x006f37d2 rb_vm_const_lookup_level + 338
    12  pushup                              0x001de893 vm_get_const + 227
    13  pushup                              0x001e6881 rb_scope3 + 81
    14  pushup                              0x001e67ae rb_scope2 + 126
    15  pushup                              0x001e66ab rb_scope1 + 123
    16  pushup                              0x001e7699 MREP_5E39F0F0EEF9479A8848FD029AC079AC + 1913
    17  pushup                              0x00007e29 RubyMotionInit + 1097
    18  pushup                              0x0000867d main + 109
    19  libdyld.dylib                       0x03cd2701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NameError

andersennl avatar Jun 10 '14 08:06 andersennl

@dotemacs I tried your solution, but I get the following error: http://pastebin.com/z7T8zmZj

vikassy avatar May 20 '15 02:05 vikassy

@vikassy sorry, not sure what the solution is.

dotemacs avatar May 20 '15 07:05 dotemacs

I had the same error than @andersennl but I am using redpotion tools. So, I just added gem 'motion-plot' to my Gemfile, require 'motion-plot' to my Rakefile and I ran rake newclear in my console. Now all is working fine. :)

Ligator avatar Aug 02 '15 09:08 Ligator