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

README command-line example #8

Open
alloy opened this issue Mar 12, 2014 · 4 comments
Open

README command-line example #8

alloy opened this issue Mar 12, 2014 · 4 comments

Comments

@alloy
Copy link

alloy commented Mar 12, 2014

I think the examples should be copy-pastable and use the same values as other suggestions in the README. For instance, the README states to ‘make a directory called "schemas"’ and the default place for assets is the resources dir. Therefore I would suggest a version like so:

$ xcdm MyApplicationName ./schemas ./resources

A second issue is that the command seems to require 4 arguments, of which I believe the last one is the ‘Xcode application version’.

/Library/Ruby/Gems/2.0.0/gems/ruby-xcdm-0.0.7/lib/xcdm/schema.rb:87:in `initialize': wrong number of arguments (3 for 4) (ArgumentError)
    from /Library/Ruby/Gems/2.0.0/gems/ruby-xcdm-0.0.7/bin/xcdm:6:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/ruby-xcdm-0.0.7/bin/xcdm:6:in `<top (required)>'
    from /usr/bin/xcdm:23:in `load'
    from /usr/bin/xcdm:23:in `<main>'

This is what I ended up using:

$ bundle exec xcdm MyApplicationName ./schemas ./resources 5.1
@kemiller
Copy link
Contributor

That last argument is supposed to be optional. I've thought about just removing the command line tool, but apparently at least one person is actually using it. I'll fix it anyway.

@alloy
Copy link
Author

alloy commented Mar 12, 2014

I've thought about just removing the command line tool, but apparently at least one person is actually using it.

Oh, how was I supposed to generate the model normally?

@kemiller
Copy link
Contributor

It would normally get triggered by a rake task (included). If you're using CDQ, and ran cdq init, that should all be set up for you. I've noticed there's a fair number of people who are using ruby-xcdm without CDQ, which is great, but means I need to pay attention to it. :)

@alloy
Copy link
Author

alloy commented Mar 13, 2014

Ah I see. I am using CDQ in this test app after all, I didn’t think I was going to use it at first. so that’s why I missed that part. Please do not take me asking about it as a sign that it needs to be maintained :)

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