Skip to content

Instantly share code, notes, and snippets.

@jongraves
jongraves / carthage.copy-frameworks.rb
Last active October 14, 2017 16:59
carthage copy-frameworks conditionally Xcode build step
built_products_dir = ENV["BUILT_PRODUCTS_DIR"]
frameworks_folder_path = ENV["FRAMEWORKS_FOLDER_PATH"]
srcroot = ENV["SRCROOT"]
dest = File.join(built_products_dir, frameworks_folder_path)
platform = ENV["PLATFORM_DISPLAY_NAME"]
carthage_frameworks_dir = File.join(srcroot, 'Carthage', 'Build', platform)
input_file_count = ENV["SCRIPT_INPUT_FILE_COUNT"].to_i
env = {"SCRIPT_INPUT_FILE_COUNT" => "0"}