Skip to content

Integration of the IOMbLib iOS via CocoaPods.

This is a step-by-step guide for installing INFOnlineLibrary in your project via CocoaPods.

Requirements

  • Xcode 14 or higher. You can download the latest stable version here.
  • CocoaPods 1.10.0 or higher. You can download the latest stable version here.
  • The minimum deployment target in your project should be iOS 11.0.

If you don't have an Xcode project and still want to test IOMbLibrary iOS, you can download the sample project here.

Adding the IOMbLibrary CocoaPods Dependency

  1. Create a podfile if you don't already have one, otherwise go to step 2:

    Open Terminal and change to the directory where your project is located.

    1
    cd path/to/project
    

    Run the following command - this will create a podfile in your project directory

    1
    pod init
    
  2. open the podfile (using any text editor) and add the IOMb Lib iOS pod URL:

    1
    pod 'IOMbLibrary', :git => 'https://repo.infonline.de/iom/base/sensors/app/ios.git'
    

    Your podfile should look like this

    1
    2
    3
    4
    5
    6
    target 'YourTargetName' do
    use_frameworks!
    
    pod 'IOMbLibrary', :git => 'https://repo.infonline.de/iom/base/sensors/app/ios.git'
    
    end
    
  3. open terminal and change to the directory where your podfile is located:

    1
    cd path/to/podfile
    

    Run the following command - this will install the pod and create an .xcworkspace file.

    1
    pod install
    
  4. open your project in Xcode via the .xcworkspace file (instead of via .xcodeproj).

  5. proceed with the configuration and initialization of the IOMb library: Link

Integration without CocoaPods

If you don't want to use CocoaPods, you can configure the IOMbLibrary manually or install it with the Swift Package Manager.


Last update: July 17, 2023