Skip to content

Instantly share code, notes, and snippets.

@incanus
Created July 10, 2013 23:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incanus/231ba5fe1844aff2774d to your computer and use it in GitHub Desktop.
Save incanus/231ba5fe1844aff2774d to your computer and use it in GitHub Desktop.
m.resources = 'MapBox.bundle'
m.pre_install do |pod, target_definition|
Dir.chdir(pod.root) do
command = "xcodebuild -project MapView/MapView.xcodeproj -target Resources CONFIGURATION_BUILD_DIR=../../Resources 2>&1 > /dev/null"
unless system(command)
raise ::Pod::Informative, "Failed to generate MapBox resources bundle"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment