Gem Version Dependency Status Build Status Coverage Status Code Climate

Rubygems::XcodeprojGenerator

Provides a Rake task for generating an Xcode project for C extension development.

Within the generated Xcode project:

  • Code completion is enabled, including Ruby internal functions and macros.
  • You can build the extension by running ⌘B, though this is just for checking while development and not for production release.

Basic Usage

Add the following development dependencies to your extension's Gemfile or gemspec:

gem 'rake-compiler'
gem 'rubygems-xcodeproj_generator'

And execute:

$ bundle install

Then add the following code to your Rakefile:

require 'rake/extensiontask'
require 'rubygems/xcodeproj_generator/rake_task'

Rake::ExtensionTask.new('your-gem-name')

Rubygems::XcodeprojGenerator::RakeTask.new do |project|
  project.name = 'your-xcode-project-name'
  project.build_command = 'bundle exec rake compile'
end

And run:

$ bundle exec rake generate_xcode_project

License

Copyright (c) 2015 Yuji Nakayama

See the LICENSE.txt for details.