diff --git a/Apollo.podspec b/Apollo.podspec index 22e6be44b6..59c13778f4 100644 --- a/Apollo.podspec +++ b/Apollo.podspec @@ -17,9 +17,7 @@ Pod::Spec.new do |s| cli_binary_name = 'apollo-ios-cli' s.preserve_paths = [cli_binary_name] s.prepare_command = <<-CMD - make clean build-cli-for-cocoapods - cp .build/release/#{cli_binary_name} #{cli_binary_name} - chmod +x #{cli_binary_name} + make unpack-cli CMD s.subspec 'Core' do |ss| diff --git a/CLI/apollo-ios-cli.tar.gz b/CLI/apollo-ios-cli.tar.gz index 8128b1fcf7..f5ec5e2bf9 100644 Binary files a/CLI/apollo-ios-cli.tar.gz and b/CLI/apollo-ios-cli.tar.gz differ diff --git a/makefile b/makefile new file mode 100644 index 0000000000..e5ff361020 --- /dev/null +++ b/makefile @@ -0,0 +1,5 @@ +default: unpack-cli + +unpack-cli: + (cd CLI && tar -xvf apollo-ios-cli.tar.gz -C ../) + chmod +x apollo-ios-cli