I need to import multiple versions of a specific framework (Lottie; lottie-ios) in my iOS app. For instance I'm trying to do a workaround by creating a cocoapod library for each version just to expose some wrappers over the dependency framework (Lottie). I tested it in a Example project and it works fine. I am able to run the project and it imports dependency framework (lottie-ios) but also my wrapper library (LOTTIE_3.2.1) correctly.
Problem:
To avoid framework hell I would like to find a way to "embed" each version of lottie-ios framework in my cocoapods wrapper libraries (e.g. my pod LOTTIE_3.2.1 will embed lottie-ios version 3.2.1). For this I tried cocoapods-packager but it refuses to compile. (tried with both Xcode 11.7 and Xcode 12)
ERROR:
<unknown>:0: error: module map file '/var/folders/0s/5l55p26n0xv0gcnvdsk2qnsw0000gn/T/cocoapods-y48kqyis/build/Release-iphoneos/lottie-ios/Lottie.modulemap' not found
<unknown>:0: error: module map file '/var/folders/0s/5l55p26n0xv0gcnvdsk2qnsw0000gn/T/cocoapods-y48kqyis/build/Release-iphoneos/lottie-ios/Lottie.modulemap' not found
<unknown>:0: error: underlying Objective-C module 'LOTTIE_3_2_1' not found
/var/folders/0s/5l55p26n0xv0gcnvdsk2qnsw0000gn/T/cocoapods-y48kqyis/Pods/LOTTIE_3.2.1/LOTTIE_3.2.1/Classes/LottieVersionable.swift:1:8: error: cannot load underlying module for 'Lottie'
import Lottie
^
Environment:
Ruby 2.6.0
Cocoapods-Packager 1.5.0 (master, not the tag/release)
Context:
I need to import multiple versions of a specific framework (Lottie; lottie-ios) in my iOS app. For instance I'm trying to do a workaround by creating a cocoapod library for each version just to expose some wrappers over the dependency framework (Lottie). I tested it in a Example project and it works fine. I am able to run the project and it imports dependency framework (lottie-ios) but also my wrapper library (LOTTIE_3.2.1) correctly.
Problem:
To avoid framework hell I would like to find a way to "embed" each version of lottie-ios framework in my cocoapods wrapper libraries (e.g. my pod LOTTIE_3.2.1 will embed lottie-ios version 3.2.1). For this I tried cocoapods-packager but it refuses to compile. (tried with both Xcode 11.7 and Xcode 12)
ERROR:
Environment:
Xcode 12 & 11.7
Podspec:
LottieVersionable.swift Class:
Command:
bundle exec pod package LOTTIE_3.2.1.podspec
Command Output: terminal-output.log