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
- Add Zalando Commerce SDK to your
Cartfile.private:
github "bonkey/zalando-commerce-ios"
- Run
carthage bootstrap - From your
Carthage/Build/iOS/directory, addZalandoCommerceAPI(and optionallyZalandoCommerceUI) 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
- Drag
ZalandoCommerceAPI.xcodeproj(andZalandoCommerceUI.xcodeprojoptionally) to your project/workspace in the Project Navigator. - Select your project, your app target, and open the Build Phases panel.
- Open the Target Dependencies group, and add
ZalandoCommerceAPI.framework(andZalandoCommerceUI.frameworkoptionally). - 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 optionallyZalandoCommerceUI.framework).
Link with binary
- Download latest binary from Releases
- Add
ZalandoCommerceAPI.frameworkandZalandoCommerceUI.frameworkto Embedded Binaries like in Carthage setup: https://github.com/bonkey/zalando-commerce-ios/blob/master/wiki/integration/carthage-embed.png