Podfile 839 B

12345678910111213141516171819202122232425
  1. # Uncomment the next line to define a global platform for your project
  2. target '{{app.name}}_iOS' do
  3. platform :ios, '{{apple.ios-version}}'
  4. # Pods for {{app.name}}_iOS
  5. {{~#each ios-pods}}
  6. pod '{{this.name}}'{{#if this.version}}, '{{this.version}}'{{/if}}{{/each}}
  7. end
  8. target '{{app.name}}_macOS' do
  9. platform :osx, '{{apple.macos-version}}'
  10. # Pods for {{app.name}}_macOS
  11. {{~#each macos-pods}}
  12. pod '{{this.name}}'{{#if this.version}}, '{{this.version}}'{{/if}}{{/each}}
  13. end
  14. # Delete the deployment target for iOS and macOS, causing it to be inherited from the Podfile
  15. post_install do |installer|
  16. installer.pods_project.targets.each do |target|
  17. target.build_configurations.each do |config|
  18. config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
  19. config.build_settings.delete 'MACOSX_DEPLOYMENT_TARGET'
  20. end
  21. end
  22. end