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

Error on sql branch #101

Open
sebfie opened this issue Jan 11, 2014 · 20 comments
Open

Error on sql branch #101

sebfie opened this issue Jan 11, 2014 · 20 comments

Comments

@sebfie
Copy link

sebfie commented Jan 11, 2014

Hello,
I try to configure sqlite with MotionModel :

This require :
require 'motion_model/fmdb'

give me this error :

$rake
     Build ./build/iPhoneSimulator-7.0-Development
Received exception: No headers to parse:
/usr/bin/gen_bridge_metadata:979:in `prepare'
/usr/bin/gen_bridge_metadata:775:in `parse'
/Library/RubyMotion/bin/gen_bridge_metadata:110:in `block in <main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb:885:in `initialize'
/Library/RubyMotion/bin/gen_bridge_metadata:32:in `new'
/Library/RubyMotion/bin/gen_bridge_metadata:32:in `<main>'
No headers to parse
Usage: gen_bridge_metadata [options] <headers...>
Use the `-h' flag or consult gen_bridge_metadata(1) for help.
rake aborted!
Command failed with status (1): [RUBYOPT='' '/Library/RubyMotion/bin/gen_br...]
/Library/RubyMotion/lib/motion/project/xcode_config.rb:349:in `gen_bridge_metadata'
/Library/RubyMotion/lib/motion/project/vendor.rb:208:in `block in build_xcode'
/Library/RubyMotion/lib/motion/project/vendor.rb:150:in `chdir'
/Library/RubyMotion/lib/motion/project/vendor.rb:150:in `build_xcode'
/Library/RubyMotion/lib/motion/project/vendor.rb:42:in `build'
/Library/RubyMotion/lib/motion/project/builder.rb:65:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:64:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:64:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:76:in `build'
/Users/sebfie/.rvm/gems/ruby-2.1.0/gems/motion-cocoapods-1.4.0/lib/motion/project/cocoapods.rb:53:in `build_with_cocoapods'
/Library/RubyMotion/lib/motion/project/template/ios.rb:46:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:63:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)
[sebfie@MacBook-Pro-de-sebastien-2 23:36:33 ~/Documents/ProjetsMobile/coursorama_ios]
@sxross
Copy link
Owner

sxross commented Jan 12, 2014

Can you build the example?

@sebfie
Copy link
Author

sebfie commented Jan 12, 2014

you mean the sqlite sample? https://github.com/sxross/MotionModel/tree/sql/sqlite3_sample_app

@sxross
Copy link
Owner

sxross commented Jan 12, 2014

Yes. If you can rake clean:all, install the pods and build, the same thing should work in your project, right?

@sebfie
Copy link
Author

sebfie commented Jan 12, 2014

Yes, this sample works.

@sebfie
Copy link
Author

sebfie commented Jan 12, 2014

trying it !

@sebfie
Copy link
Author

sebfie commented Jan 12, 2014

I have this when I do : pod setup
[!] The `master' repo requires CocoaPods 0.18.1 -

@sebfie
Copy link
Author

sebfie commented Jan 12, 2014

My gemfile:

source 'https://rubygems.org'

gem "rake"
gem "bubble-wrap"

gem 'motion_model', :git => 'git://github.com/sxross/MotionModel.git', :branch => 'sql'

gem "motion-support", ">= 0.2.2"

gem 'cocoapods', '~>0.16.4'
gem 'motion-cocoapods', '1.2.1'

@sxross
Copy link
Owner

sxross commented Jan 13, 2014

Try

rake pod:install

@sebfie
Copy link
Author

sebfie commented Jan 13, 2014

I have this :

$rake pod:install
rake aborted!
cannot load such file -- motion-cocoapods
/Users/sebfie/Documents/ProjetsMobile/coursorama_ios/Rakefile:12:in require' /Users/sebfie/Documents/ProjetsMobile/coursorama_ios/Rakefile:12:in<top (required)>'
(See full trace by running task with --trace)

@sxross
Copy link
Owner

sxross commented Jan 13, 2014

Please create a small project on Github with this problem. Provide steps to repro in the README. I'll have a look. It's unusual that the example would work but that yours would fail to find the motion-cocoapods gem.

Before you create the project, do one more thing:

$ bundle install
$ rake clean:all
$ rake pod:install

Please include your environment with the error -- are you using RVM, what version of Bundler, do gem list, etc. Again, put that in the README.

@sebfie
Copy link
Author

sebfie commented Jan 14, 2014

Ok, I will create a small project ! I also have an other issue. When I try to use "bubble-wrap", when I include "bubble-wrap" from the sqlite3_sample_app example I have this error :

2014-01-14 11:29:23.638 sqlite3_sample_app[74186:80b] undefined method mattr_writer' for MotionSupport:Class (NoMethodError) 2014-01-14 11:29:23.642 sqlite3_sample_app[74186:80b] *** Terminating app due to uncaught exception 'NoMethodError', reason: 'undefined methodmattr_writer' for MotionSupport:Class (NoMethodError)

I tried it from your sqlite3_sample_app, just added the gem and require "bubble-wrap" in rakefile. It works well in a virgin project but not from your sqlite3_sample_app. Can you try it and tell me if you have the same issue?

@sxross
Copy link
Owner

sxross commented Jan 14, 2014

@aceofspades -- can you help @Ditchou ?

Thanks

@sebfie
Copy link
Author

sebfie commented Jan 14, 2014

To reproduce, just add the line require "bubble-wrap" in the rakefile of sqlite3_sample_app. Tell me if you got the same error.

@DougPuchalski
Copy link
Contributor

I'm pretty swamped lately, but I'll try to queue it up. It's been a while since I've used this. @Ditchou If you're able to spend some time getting to the bottom of it and can submit a PR that would be awesome.

@sebfie
Copy link
Author

sebfie commented Jan 16, 2014

I will try to understand it, but i am new in rubymotion and not very efficient with debug, I will try to use rubymine. If you have time to test it just to tell me if you have the same issue !

@sxross
Copy link
Owner

sxross commented Jan 29, 2014

Now that I'm on a computer and not a phone... I want to clarify.

  • Is it true that the SQL example app can be built successfully? (if true, can we close this?)
  • Is the bubble-wrap issue related to the initial issue or should a different issue be opened for just that?

Thanks

@sebfie
Copy link
Author

sebfie commented Jan 29, 2014

It's true the SQL example can be built successfully

And yes, we should open an issue to integrate bubble-wrap.

Can you do that for us ! Thx

@calicoder
Copy link
Contributor

Steve, the SQL example is building successfully and yes, we should open an issue for bubble-wrap integration.

@sxross
Copy link
Owner

sxross commented Feb 25, 2014

There seems already to be an issue with motion-resource:

tkadauke/motion-resource#20

If this is the one, then it's to do with auto-detecting dependencies. Try disabling them in your project.

@stevebooks
Copy link

I just updated the SQL branch with some fixes (that were merged yesterday), I think it might fix your problems as well, can you try it out?

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

5 participants