Skip to content

Instantly share code, notes, and snippets.

@HendX
Created February 22, 2018 15:19
Show Gist options
  • Save HendX/12754416b2bf8fb8330c2f5d096eaa87 to your computer and use it in GitHub Desktop.
Save HendX/12754416b2bf8fb8330c2f5d096eaa87 to your computer and use it in GitHub Desktop.
Adds arm64 to non-watch targets
post_install do |installer|
plist_buddy = "/usr/libexec/PlistBuddy"
installer.pods_project.targets.each do |target|
puts target.name
name = "#{target.platform_name}"
if name == 'ios'
puts "Updating #{target.platform_name}"
plist = "Pods/Target Support Files/#{target}/Info.plist"
`#{plist_buddy} -c "Add UIRequiredDeviceCapabilities array" "#{plist}"`
`#{plist_buddy} -c "Add UIRequiredDeviceCapabilities:0 string arm64" "#{plist}"`
else
puts "Didn't match #{target.platform_name}"
end
end
end
@HendX
Copy link
Author

HendX commented Feb 22, 2018

Excuse typo on file name.

Add this bottom of Podfile then run pod update.

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