diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4a2f236 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'xcodeproj' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..a8da2d6 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,23 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.0) + atomos (0.1.3) + claide (1.0.2) + colored2 (3.1.2) + nanaimo (0.2.6) + xcodeproj (1.8.2) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.2.6) + +PLATFORMS + ruby + +DEPENDENCIES + xcodeproj + +BUNDLED WITH + 1.16.6 diff --git a/src/extensions/ios-extension.js b/src/extensions/ios-extension.js index 214e7a2..40cf532 100644 --- a/src/extensions/ios-extension.js +++ b/src/extensions/ios-extension.js @@ -5,14 +5,14 @@ module.exports = toolbox => { getProjectFilePath: async () => { const { print, system, meta } = toolbox return new Promise((resolve, reject) => { - system.run(`ruby ${meta.src}/ios.rb get_project_path`) + system.run(`BUNDLE_GEMFILE=${meta.src}/../Gemfile bundle exec ruby ${meta.src}/ios.rb get_project_path`) resolve() }) }, addBuildConfigurations: async (teamId) => { const { print, system, meta } = toolbox return new Promise((resolve, reject) => { - system.run(`ruby ${meta.src}/ios.rb make_new_build_configurations ${teamId}`) + system.run(`BUNDLE_GEMFILE=${meta.src}/../Gemfile bundle exec ruby ${meta.src}/ios.rb make_new_build_configurations ${teamId}`) resolve() }) }, @@ -22,7 +22,7 @@ module.exports = toolbox => { // FIXME: there is some race condition going on here. // without setTimeout here, it won't be applied :shrug: setTimeout(() => { - system.run(`ruby ${meta.src}/ios.rb add_bundle_id_suffixes`) + system.run(`BUNDLE_GEMFILE=${meta.src}/../Gemfile bundle exec ruby ${meta.src}/ios.rb add_bundle_id_suffixes`) resolve() }, 200) }) @@ -30,7 +30,7 @@ module.exports = toolbox => { addSchemes: async () => { const { print, system, meta } = toolbox return new Promise((resolve, reject) => { - system.run(`ruby ${meta.src}/ios.rb add_schemes`) + system.run(`BUNDLE_GEMFILE=${meta.src}/../Gemfile bundle exec ruby ${meta.src}/ios.rb add_schemes`) resolve() }) },