Created
October 22, 2015 07:42
-
-
Save orta/29230398af6999136d8c to your computer and use it in GitHub Desktop.
make frameworks the same as your bundle id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install do |installer| | |
app_plist = "Emergence/Info.plist" | |
plist_buddy = "/usr/libexec/PlistBuddy" | |
version = `#{plist_buddy} -c "Print CFBundleShortVersionString" #{app_plist}`.split | |
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
👍