Skip to content

Instantly share code, notes, and snippets.

@sarunw
Forked from orta/Podfile.ruby
Last active October 23, 2015 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarunw/f7bc60a9e453b7274dd5 to your computer and use it in GitHub Desktop.
Save sarunw/f7bc60a9e453b7274dd5 to your computer and use it in GitHub Desktop.
make frameworks the same as your bundle id
post_install do |installer|
app_plist = "Emergence/Info.plist"
plist_buddy = "/usr/libexec/PlistBuddy"
version = `#{plist_buddy} -c "Print CFBundleShortVersionString" #{app_plist}`
puts "Updating CocoaPods' version numbers to #{version}"
installer.pods_project.targets.each do |target|
`#{plist_buddy} -c "Set CFBundleShortVersionString #{version}" "Pods/Target Support Files/#{target}/Info.plist"`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment