Swift Package Manager
  • 29 Jun 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Swift Package Manager

  • Dark
    Light

Article summary

How do I add Ticketmaster frameworks to my Xcode project?

Swift Package Manager

  1. In your Xcode project, select your Project, then Package Dependencies, then click the Add (+) button

SPM_Step1a

  1. Copy/Paste the URL of this GitHub repo into the Search field
https://github.com/ticketmaster/iOS-TicketmasterSDK.git

2a. Select Dependency Rule: Exact Version of the latest release version

SPM_Step2a

  1. Select required Package Products (.xcframework files), then click Add Package

When importing Package Products, you should only add the minimum number of Ticketmaster Libraries required for each feature (see Package Products section below for requirements).

SPM_Step3a

  1. Visually verify that the correct SDK version was added to your project

SPM_Step4a

  1. Visually verify that selected Package Products (.xcframework libraries) were added to your Xcode project

SPM_Step5a

  1. For next steps see:

Package Products

TicketmasterTickets

Purpose: Post-Purchase and Event Entry (ie. show Purchase Events, Tickets, and Barcodes)

Required Package Products (.xcframework libraries):

  • TicketmasterAuthentication
  • TicketmasterFoundation
  • TicketmasterSecureEntry
  • TicketmasterTickets

TicketmasterPurchase

Purpose: Event Purchasing

Required Package Products (.xcframework libraries):

  • TicketmasterAuthentication
  • TicketmasterDiscoveryAPI
  • TicketmasterFoundation
  • TicketmasterPurchase

TicketmasterPrePurchase

Purpose: Webpage-based Event, Attraction, and Venue Discovery

Required Package Products (.xcframework libraries):

  • TicketmasterAuthentication
  • TicketmasterDiscoveryAPI
  • TicketmasterFoundation
  • TicketmasterPrePurchase

TicketmasterDiscoveryAPI

Purpose: API-based Event, Attraction, and Venue Discovery

Required Package Products (.xcframework libraries):

  • TicketmasterDiscoveryAPI
  • TicketmasterFoundation

Was this article helpful?