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

Xcode 9.3 support. #203

Open
StarWars opened this issue Apr 3, 2018 · 3 comments
Open

Xcode 9.3 support. #203

StarWars opened this issue Apr 3, 2018 · 3 comments

Comments

@StarWars
Copy link

StarWars commented Apr 3, 2018

When trying to use generamba gen, against the projects created using Xcode 9.3 - the following error occurs:

/.rvm/gems/ruby-2.4.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project.rb:217:in `initialize_from_file': [Xcodeproj] Unknown object version. (RuntimeError)

The source code of a project.rb file in line 217 shows that the problem is caused by the following version check:
if object_version.to_i > Constants::LAST_KNOWN_OBJECT_VERSION
where the object_version is a value found within the project.pbxproj, under the key objectVersion.
The Xcode 9.3 sets objectVersion to 50. Anything below is going to work.

@akonakov
Copy link

Just change the Project Document -> Project Format to Xcode-8.0-compatible or lower.

@ghost
Copy link

ghost commented Jul 13, 2018

@gulzatique
Here it is
screen shot 2018-07-13 at 14 49 42

@StarWars
Copy link
Author

In case you can't get rid of Input/Output files, or the above doesn't help. Try the following:
https://stackoverflow.com/a/37223332/1306884 with the git repository pointing to develop on https://github.com/strongself/Generamba
The develop branch already has an updated xcodeproj, that is capable of handling Xcode 10.0 compatible projects.
NOTE: You will have to edit the gemspec file after you've cloned the develop branch in case your bundler is newer than the 1.x versions.

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