Installation - bonkey/zalando-commerce-ios GitHub Wiki

Requirements

  • iOS 9+
  • Swift 3
  • ZalandoCommerceUI views are designed for iPhone only. iPad works, but is not deliberately adapted

CocoaPods

Standard installation

To integrate API client and UI components use ZalandoCommerceUI in Podfile:

use_frameworks!

target 'MyApp' do
  pod 'ZalandoCommerceUI'
end

API client only installation

To integrate API client only use ZalandoCommerceAPI in Podfile:

use_frameworks!

target 'MyApp' do
  pod 'ZalandoCommerceAPI'
end

Carthage

  1. Add Zalando Commerce SDK to your Cartfile.private:
github "bonkey/zalando-commerce-ios"
  1. Run carthage bootstrap
  2. From your Carthage/Build/iOS/ directory, add ZalandoCommerceAPI (and optionally ZalandoCommerceUI) to your "Embedded Binaries":

https://github.com/bonkey/zalando-commerce-ios/blob/master/wiki/integration/carthage-embed.png

Manual

You can either add source code to your project, or link pre-compiled binaries.

Attach source code

  1. Drag ZalandoCommerceAPI.xcodeproj (and ZalandoCommerceUI.xcodeproj optionally) to your project/workspace in the Project Navigator.
  2. Select your project, your app target, and open the Build Phases panel.
  3. Open the Target Dependencies group, and add ZalandoCommerceAPI.framework (and ZalandoCommerceUI.framework optionally).
  4. Click on the + button at the top left of the panel and select New Copy Files Phase. Set Destination to Frameworks, and add ZalandoCommerceAPI.framework (and optionally ZalandoCommerceUI.framework).

Link with binary

  1. Download latest binary from Releases
  2. Add ZalandoCommerceAPI.framework and ZalandoCommerceUI.framework to Embedded Binaries like in Carthage setup: https://github.com/bonkey/zalando-commerce-ios/blob/master/wiki/integration/carthage-embed.png