Created
February 22, 2018 15:19
-
-
Save HendX/12754416b2bf8fb8330c2f5d096eaa87 to your computer and use it in GitHub Desktop.
Adds arm64 to non-watch targets
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| | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excuse typo on file name.
Add this bottom of Podfile then run pod update.