Installation via Cocoapods
- Add repo with Intelligence Retail specs and official Cocoapods specs into your project
Podfile:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/intrtl/specs'
-
Add
use_frameworks!param to yourPodfile. -
Add
IRLibpod as a dependency to your projects targets:
target 'YourTarget' do
pod 'IRLib'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "GRDB.swift"
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end
-
Skip this step you haven't embedded the framework previously without Cocoapods. Remove
IRLib.frameworkfrom embedded libraries (xcode project settings -> 'General' tab), Embedded Frameworks and Link binary with libraries sections (xcode project settings -> 'Build Phases' tab). -
Run
pod installvia terminal in directory with your project. -
To update version of previously installed framework run
pod update IRLibvia terminal in directory with your project.