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

Sql Lite + Cocoa Pod + High Sierra + OSX #42

Closed
amirrajan opened this Issue Oct 5, 2017 · 20 comments

Comments

Projects
None yet
5 participants
@amirrajan
Owner

amirrajan commented Oct 5, 2017

@victorcechinel

This comment has been minimized.

Show comment
Hide comment
@victorcechinel

victorcechinel Oct 6, 2017

See repo: https://github.com/solanoluz/motion-sqlite3

Gem file:

gem 'motion-sqlite3', git: 'git@github.com:solanoluz/motion-sqlite3.git'
gem 'motion-cocoapods', '1.8.1'

Add this code on Rakefile:

Motion::Project::App.setup do |app|
   # Last line
   app.libs << '/usr/lib/libsqlite3.dylib'
   app.include 'sqlite3.h'
end

victorcechinel commented Oct 6, 2017

See repo: https://github.com/solanoluz/motion-sqlite3

Gem file:

gem 'motion-sqlite3', git: 'git@github.com:solanoluz/motion-sqlite3.git'
gem 'motion-cocoapods', '1.8.1'

Add this code on Rakefile:

Motion::Project::App.setup do |app|
   # Last line
   app.libs << '/usr/lib/libsqlite3.dylib'
   app.include 'sqlite3.h'
end
@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Oct 7, 2017

Owner

@victorcechinel did you get this working on High Sierra? I'm still getting an error.

Owner

amirrajan commented Oct 7, 2017

@victorcechinel did you get this working on High Sierra? I'm still getting an error.

@amirrajan

This comment has been minimized.

Show comment
Hide comment

@amirrajan amirrajan added the bug label Oct 22, 2017

@amirrajan amirrajan added this to the RM vNext/shortlist milestone Oct 22, 2017

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Oct 22, 2017

Owner

This line needs to be fixed /cc @victorcechinel @kastiglione for HighSierra: https://github.com/amirrajan/motion.h/blob/master/lib/motion.h.rb#L71

@kastiglione, do you accept pull requests? Make me a collaborator and give me access to push motion.h?

Owner

amirrajan commented Oct 22, 2017

This line needs to be fixed /cc @victorcechinel @kastiglione for HighSierra: https://github.com/amirrajan/motion.h/blob/master/lib/motion.h.rb#L71

@kastiglione, do you accept pull requests? Make me a collaborator and give me access to push motion.h?

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Oct 22, 2017

Owner

Will open issue on motion.h or fork and deploy a new version.

Owner

amirrajan commented Oct 22, 2017

Will open issue on motion.h or fork and deploy a new version.

@amirrajan amirrajan closed this Oct 22, 2017

@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Oct 23, 2017

I'm happy to add collaborators, also happy to hand off the project. If you fork I'll be sure to point the original repo to yours.

kastiglione commented Oct 23, 2017

I'm happy to add collaborators, also happy to hand off the project. If you fork I'll be sure to point the original repo to yours.

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Oct 24, 2017

Owner

@kastiglione I’d be happy to take over. Mind adding me as a collaborator to your repo (and give me push rights for the gem)?

Owner

amirrajan commented Oct 24, 2017

@kastiglione I’d be happy to take over. Mind adding me as a collaborator to your repo (and give me push rights for the gem)?

@ben5516

This comment has been minimized.

Show comment
Hide comment
@ben5516

ben5516 Oct 26, 2017

@amirrajan What error were you getting with High Sierra? On my own app, I'm getting:

can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo={NSLocalizedDescription=zero length data}

but when I clone and build https://github.com/eamonn-webster/TestMotionSQLite3, it actually compiles and launches in the simulator, but I get this error:

uninitialized constant SQLite3::Database::SQLITE_OK (NameError)

ben5516 commented Oct 26, 2017

@amirrajan What error were you getting with High Sierra? On my own app, I'm getting:

can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo={NSLocalizedDescription=zero length data}

but when I clone and build https://github.com/eamonn-webster/TestMotionSQLite3, it actually compiles and launches in the simulator, but I get this error:

uninitialized constant SQLite3::Database::SQLITE_OK (NameError)
@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Oct 26, 2017

@amirrajan I added you as collaborator. I'll do the gem rights later today.

kastiglione commented Oct 26, 2017

@amirrajan I added you as collaborator. I'll do the gem rights later today.

@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Oct 26, 2017

@amirrajan How do I add gem push rights, via gemspec?

kastiglione commented Oct 26, 2017

@amirrajan How do I add gem push rights, via gemspec?

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Oct 26, 2017

Owner

I think through rubygems.org maybe?

Owner

amirrajan commented Oct 26, 2017

I think through rubygems.org maybe?

@ben5516

This comment has been minimized.

Show comment
Hide comment
@ben5516

ben5516 Jan 2, 2018

@amirrajan @kastiglione Were you ever able to get the gem pushed?

ben5516 commented Jan 2, 2018

@amirrajan @kastiglione Were you ever able to get the gem pushed?

@Lax

This comment has been minimized.

Show comment
Hide comment
@Lax

Lax Jan 2, 2018

@kastiglione Use gem owner <gem> -a <email> command.
gem help owner for detail.

Lax commented Jan 2, 2018

@kastiglione Use gem owner <gem> -a <email> command.
gem help owner for detail.

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Jan 2, 2018

Owner

@ben5516 this week hopefully.

Owner

amirrajan commented Jan 2, 2018

@ben5516 this week hopefully.

@amirrajan amirrajan reopened this Jan 2, 2018

@amirrajan amirrajan modified the milestones: RM vNext/shortlist, RM 5.7 Jan 2, 2018

@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Jan 2, 2018

@ben5516 I looked to add @amirrajan as a gem owner via rubygems.org, but didn't see where to do that. Seems that's the only thing to do before @amirrajan can push an update.

kastiglione commented Jan 2, 2018

@ben5516 I looked to add @amirrajan as a gem owner via rubygems.org, but didn't see where to do that. Seems that's the only thing to do before @amirrajan can push an update.

@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Jan 2, 2018

oh I just saw @Lax's comment. I'll do that.

kastiglione commented Jan 2, 2018

oh I just saw @Lax's comment. I'll do that.

@kastiglione

This comment has been minimized.

Show comment
Hide comment
@kastiglione

kastiglione Jan 2, 2018

@amirrajan I have added you as an owner.

kastiglione commented Jan 2, 2018

@amirrajan I have added you as an owner.

@ben5516

This comment has been minimized.

Show comment
Hide comment
@ben5516

ben5516 commented Jan 3, 2018

Thanks @kastiglione

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Jan 5, 2018

Owner

@ben5516 , updated. Mind confirming?

gem uninstall motion.h #uninstall 0.0.4
gem install motion.h #install 0.0.5
rake clean:all #navigate to your app and clean all
rm -rf ~/Library/RubyMotion #blow away any cached bridge support files
rake default #build and see if it works
Owner

amirrajan commented Jan 5, 2018

@ben5516 , updated. Mind confirming?

gem uninstall motion.h #uninstall 0.0.4
gem install motion.h #install 0.0.5
rake clean:all #navigate to your app and clean all
rm -rf ~/Library/RubyMotion #blow away any cached bridge support files
rake default #build and see if it works
@ben5516

This comment has been minimized.

Show comment
Hide comment
@ben5516

ben5516 commented Jan 10, 2018

@amirrajan

Worked for me!

@amirrajan amirrajan closed this Jan 10, 2018

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