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

Can't use motion-cocoapods on motion-game template #23

Open
hugoerg56 opened this issue Mar 11, 2016 · 5 comments
Open

Can't use motion-cocoapods on motion-game template #23

hugoerg56 opened this issue Mar 11, 2016 · 5 comments

Comments

@hugoerg56
Copy link

after add
gem 'motion-cocoapods'
to my gemfile

rake pod:install
rake aborted!
Don't know how to build task 'pod:install' (see --tasks)

Any way to integrate cocoapods to ios games?

@hugoerg56
Copy link
Author

nothing? @Watson1978 @jjaffeux

@lrz
Copy link
Member

lrz commented Apr 11, 2016

This is not implemented, but it shouldn't be hard to add, feel free to contribute a patch :)

@hugoerg56
Copy link
Author

Well I'm not really an expert on this, but if u can explain a little as you would, I'll try gladly, Greetings

@MarkVillacampa
Copy link
Member

I have not thought of the best way to implement this, but here's some info that could be useful:

We generate a shortcuts.rb file, which simply creates namespaced rake commands which forward the rake commands to the corresponding platforms.

Here's the script used to generate shortcuts.rb:

https://github.com/HipByte/motion-game/blob/master/Rakefile#L272-L290

And here's shortcuts.rb:

https://github.com/HipByte/motion-game/blob/master/lib/motion-game/shortcuts.rb

Ideally the solution should allow to forward arbitrary rake commands to each platform simply using the namespace, e.g.:

rake ios:pod:install

Let me know if you have any questions :)

@lrz
Copy link
Member

lrz commented Apr 12, 2016

Also maybe you should look at https://github.com/HipByte/Flow because if I'm not mistaken we do support this functionality (and the project has a similar architecture as motion-game).

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

3 participants