lib/cocoapods-rome/post_install.rb in cocoapods-rome-0.3.0 vs lib/cocoapods-rome/post_install.rb in cocoapods-rome-0.3.1

- old
+ new

@@ -1,10 +1,14 @@ +require 'fourflusher' + CONFIGURATION = "Release" DEVICE = "iphoneos" SIMULATOR = "iphonesimulator" def xcodebuild(sandbox, target, sdk='macosx') - Pod::Executable.execute_command 'xcodebuild', %W(-project #{sandbox.project_path.basename} -scheme #{target} -configuration #{CONFIGURATION} -sdk #{sdk}), true + args = %W(-project #{sandbox.project_path.basename} -scheme #{target} -configuration #{CONFIGURATION} -sdk #{sdk}) + args += Fourflusher::SimControl.new.destination('iPhone 5s') if sdk.include?('simulator') + Pod::Executable.execute_command 'xcodebuild', args, true end Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_context| sandbox_root = Pathname(installer_context.sandbox_root) sandbox = Pod::Sandbox.new(sandbox_root)