Skip to content

Instantly share code, notes, and snippets.

@Samywamy10
Last active August 24, 2020 12:25
Show Gist options
  • Select an option

  • Save Samywamy10/ea4f04d0548e2791d12f8c41756dd40c to your computer and use it in GitHub Desktop.

Select an option

Save Samywamy10/ea4f04d0548e2791d12f8c41756dd40c to your computer and use it in GitHub Desktop.
steps:
- task: Cache@2
inputs:
key: 'pods | "$(Agent.OS)" | Podfile.lock | Podfile | MyApp.xcodeproj/project.pbxproj'
path: 'Pods'
cacheHitVar: 'PODS_CACHE_RESTORED'
- script: |
sudo gem install cocoapods-binary
xcode-select -print-path
sudo xcode-select -switch '/Applications/Xcode_12_beta.app'
xcode-select -print-path
- task: CocoaPods@0
displayName: 'pod install using the CocoaPods task with defaults'
condition: ne(variables.PODS_CACHE_RESTORED, 'true')
inputs:
forceRepoUpdate: false
- task: Xcode@5
inputs:
actions: 'build'
configuration: 'Release'
sdk: 'iphoneos'
xcWorkspacePath: 'MyApp.xcworkspace'
xcodeVersion: 'specifyPath'
xcodeDeveloperDir: '/Applications/Xcode_12_beta.app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment