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

BridgeSupport problem? #4

Open
jviney opened this issue Feb 6, 2014 · 18 comments
Open

BridgeSupport problem? #4

jviney opened this issue Feb 6, 2014 · 18 comments

Comments

@jviney
Copy link

jviney commented Feb 6, 2014

Hi,

I've just started with RubyMotion and your sqlite3 driver was working great. But after upgrading RubyMotion to 2.22 (from 2.18),

     Build ./build/iPhoneSimulator-7.0-Development
   Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/version.rb
   Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/result_set.rb
   Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/error.rb
   Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/statement.rb
2014-02-06 18:46:15.936 ruby[43808:d0f] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x62c1af0 {NSLocalizedDescription=zero length data}
2014-02-06 18:46:15.941 ruby[43807:d0f] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x5d0aed0 {NSLocalizedDescription=zero length data}
r

The bizarre thing is that if I create a new RubyMotion project and copy the application code in, it works fine.

Any idea what's causing this error?

P.S. Thanks for writing this library!

@mattgreen
Copy link
Collaborator

What happens if you rake clean?

@jviney
Copy link
Author

jviney commented Feb 17, 2014

Seemed to work once perhaps, but problem recurred. It ends up with a blank build/sqlite3.bridgesupport somehow.

I resorted to downloading the file from https://raw.github.com/dastels/MTGRules-rb/master/vendor/sqlite3/sqlite3.bridgesupport

@mattgreen
Copy link
Collaborator

Wondering if motion.h isn't liking something...any ideas @kastiglione?

@kastiglione
Copy link

OS X or iOS?

@jviney
Copy link
Author

jviney commented Feb 18, 2014

iOS

@kastiglione
Copy link

Can you try pointing your Gemfile to use motion.h from master (https://github.com/kastiglione/motion.h.git). If master fixes your problem than the solution is just for me to cut a new release.

@jviney
Copy link
Author

jviney commented Feb 18, 2014

I can't reproduce the problem now! Feel free to close this, if it does come up again I'll attempt that fix.

@mattgreen
Copy link
Collaborator

Chime in if the fix does or does not help.

@jviney
Copy link
Author

jviney commented Feb 21, 2014

It happened again, and the fix did appear to do the trick.

@mattgreen
Copy link
Collaborator

Once a new version of motion.h is released, I'll update the gemspec to use it.

@mattgreen mattgreen reopened this Feb 21, 2014
@kastiglione
Copy link

I release a v0.0.4 version of motion.h. Let me know if there are any troubles.

@mattgreen
Copy link
Collaborator

Thanks Dave! 👍

Just pushed 0.5.2.

@tylerjohnst
Copy link

Using both 0.0.4 of motion.h and 0.5.2 the error still persists. Manually copying sqlite3.bridgesupport from that MTGRules repo fixed the problem.

@kastiglione
Copy link

@tylerjohnst Can you point your Gemfile to master instead of 0.0.4 for motion.h? (https://github.com/kastiglione/motion.h.git)

@Watson1978 recently submitted a pull request to motion.h that might address the problem you're seeing. I should release v0.0.5 anyway, but in the mean time if you do try master, please let me know.

@tylerjohnst
Copy link

Same problem empty BridgeSupport file is built.

@wallclimber21
Copy link

I think I'm running into the same problem. I simply cloned the repo, ran 'bundle', then 'rake'.
I get the following:

     Build ./build/iPhoneSimulator-8.2-Development
   Compile /Users/tom/projects/motion-sqlite3/lib/motion-sqlite3/result_set.rb
   Compile /Users/tom/projects/motion-sqlite3/lib/motion-sqlite3/version.rb
   Compile /Users/tom/projects/motion-sqlite3/lib/motion-sqlite3/database.rb
   Compile /Users/tom/projects/motion-sqlite3/lib/motion-sqlite3/error.rb
   Compile /Users/tom/projects/motion-sqlite3/lib/motion-sqlite3/statement.rb
   Compile ./app/app_delegate.rb
2015-03-30 22:27:43.332 ruby[72811:1941863] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x7e5c5500 {NSLocalizedDescription=zero length data}
2015-03-30 22:27:43.360 ruby[72804:1941856] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x7e321310 {NSLocalizedDescription=zero length data}
2015-03-30 22:27:43.370 ruby[72810:1941862] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x7ec84230 {NSLocalizedDescription=zero length data}
2015-03-30 22:27:43.371 ruby[72808:1941860] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x803a3a90 {NSLocalizedDescription=zero length data}
2015-03-30 22:27:43.372 ruby[72809:1941861] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x80ebc910 {NSLocalizedDescription=zero length data}
2015-03-30 22:27:43.378 ruby[72806:1941858] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x7fe0bea0 {NSLocalizedDescription=zero length data}
rake aborted!
Command failed with status (1): [/usr/bin/env VM_PLATFORM="iPhoneSimulator"...]
/Library/RubyMotion/lib/motion/project/builder.rb:144:in `block (2 levels) in build'
/Library/RubyMotion/lib/motion/project/builder.rb:130:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:130:in `block in build'
/Library/RubyMotion/lib/motion/project/paralel_builder.rb:47:in `call'
/Library/RubyMotion/lib/motion/project/paralel_builder.rb:47:in `block (2 levels) in initialize'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)

I'm using rvm with ruby 2.2.0, and rubymotion version 3.8.

@mattgreen
Copy link
Collaborator

I've seen people having success recently, but only with the master branch of motion.h. Give that a try.

@ben5516
Copy link
Contributor

ben5516 commented Oct 25, 2017

I'm having this problem on High Sierra with motion 5.3 . Has anyone found a solution for this? I've tried the above fixes to no avail.

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

6 participants