Skip to content

Instantly share code, notes, and snippets.

@aaronpearce
Created February 22, 2018 04:29
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpearce/d2e41a2d0844d78addf4ffd884e748ca to your computer and use it in GitHub Desktop.
Save aaronpearce/d2e41a2d0844d78addf4ffd884e748ca to your computer and use it in GitHub Desktop.
// From https://twitter.com/nathan
post_install do |installer|
installer.pods_project.targets.each do |target|
plist_buddy = "/usr/libexec/PlistBuddy"
plist = "Pods/Target Support Files/#{target}/Info.plist"
`#{plist_buddy} -c "Add UIRequiredDeviceCapabilities array" "#{plist}"`
`#{plist_buddy} -c "Add UIRequiredDeviceCapabilities:0 string arm64" "#{plist}"`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment