Skip to content

Instantly share code, notes, and snippets.

@orta
Created October 22, 2015 07:42
Show Gist options
  • Save orta/29230398af6999136d8c to your computer and use it in GitHub Desktop.
Save orta/29230398af6999136d8c 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}`.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
@Gerst20051
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment