Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the project failed with "uninitialized constant SimpleView::Builders::UIViewBuilder" #9

Open
siuying opened this issue Jan 22, 2013 · 2 comments

Comments

@siuying
Copy link
Contributor

siuying commented Jan 22, 2013

On RubyMotion 1.30, i failed to run projects included SimpleView.

Hydrogen:SimpleView(dependency|98d) $ rake
     Build ./build/iPhoneSimulator-4.3-Development
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/ui_color.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/string.rb
/Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/string.rb:23: warning: string literal in condition
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/ui_image.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/ui_font.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/helpers/has_background_color.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/extensions/ui_view.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/helpers/has_font.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/helpers/has_color.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/helpers/has_tint_color.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/helpers/has_text_color.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/view_proxy.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_control_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_view_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/styles.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_action_sheet_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_activity_indicator_view_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_image_view_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_button_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_progress_view_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_label_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_segmented_control_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_search_bar_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_switch_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_slider_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_table_view_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_tab_bar_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_text_field_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_table_view_cell_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_toolbar_builder.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/builders/ui_text_view_builder.rb
   Compile ./app/view_anchoring_controller.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/layout.rb
   Compile ./app/app_delegate.rb
   Compile ./app/simple_view_controller.rb
   Compile /Users/siuying/Documents/workspace/motion/SimpleView/lib/simple_view/version.rb
    Create ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.app
      Link ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.app/SimpleViewDemo
    Create ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.app/Info.plist
    Create ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.app/PkgInfo
      Copy ./resources/test.jpg
    Create ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.dSYM
  Simulate ./build/iPhoneSimulator-4.3-Development/SimpleViewDemo.app
(main)> 2013-01-22 15:10:35.752 SimpleViewDemo[53555:c07] uninitialized constant SimpleView::Builders::UIViewBuilder (NameError)
2013-01-22 15:10:35.755 SimpleViewDemo[53555:c07] *** Terminating app due to uncaught exception 'NameError', reason: 'uninitialized constant SimpleView::Builders::UIViewBuilder (NameError)
'
*** First throw call stack:
(0x1875012 0x338e7e 0x18b754 0x2712 0x2195 0x1)
libc++abi.dylib: terminate called throwing an exception
*** simulator session ended with error: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "被模拟的应用程序已退出。" UserInfo=0x1005032a0 {NSLocalizedDescription=被模拟的应用程序已退出。, DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
rake aborted!
Command failed with status (1): [DYLD_FRAMEWORK_PATH="/Applications/Xcode.a...]

Tasks: TOP => default => simulator
(See full trace by running task with --trace)
Hydrogen:SimpleView(dependency|98d) $ head /Library/RubyMotion/NEWS 
= RubyMotion 1.30 =

  * Fixed a bug in the build system where it could not detect file dependencies
    using nested classes (ex. `module M; class C' and `class C2 < M::C').
  * Fixed a bug where MapKit annotation pins would disappear, because certain
    Ruby objects (in this case, MKAnnotations) would use a Bignum value as the
    return value of the `hash' method, which would not work properly when used
    within MapKit.
  * Added formatter for RubyMine tests runner. Thanks to Dennis Ushakov for the
    patch.
@seanho
Copy link
Owner

seanho commented Jan 22, 2013

It is broken after Smart Dependencies is introduced. Can temporarily be fix by settings app.detect_dependency = false. Already working on a proper fix.

@siuying
Copy link
Contributor Author

siuying commented Jan 22, 2013

Oh Thanks. That was weird as I can run the project after Smart Dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants