I have an iOS App MY-App
that uses my own framework MY-Framework
. Both are written in swift
. The app only handles authentication of the user and sends an access to MY Framework
. MY-Framework
then handles the entire screen flow and business logic. The goal is to distribute MY-Framework
to customers to use it in their apps.
For a while I used cocoa pods to add GoogleMaps
to F
F ]. everything worked fine.
My project structure is:
MY-App /
+ - Develop.xcworkspace
- MY-App.xcodeproj
MY-work /
+ - MY-Framework.workspace
+ - MY-Framework.xcodeproj
- Pods /
- Pods.xcodeproj
min Podfile
was a simple
source & # 39; https: //github.com/CocoaPods/Specs.git'
The goal "MY Framework" does
pod & # 39; GooglePlaces & # 39;
pod & # 39; GoogleMaps & # 39;
end
I should now improve my app with some animation and should use Lottie-ios
for it
I updated Podfile
as follows
source & # 39; https: //github.com/CocoaPods/Specs.git'
The goal "MY Framework" does
pod & # 39; GooglePlaces & # 39;
pod & # 39; GoogleMaps & # 39;
pod & lottie ios & # 39;
end
I could not import Lottie
into my code. the solution was to include
use_frameworks!
in Podfile
So far so good, but when I built I got the link error with lottie
.
My solution was to explicitly add Lottie .framework
from the Pods
project to my framework linked framework
. Screenshot from my Develop.xcworkspace
open.
now I managed to compile the app and successfully plug it in, but over time, the app crashes with the usual
poem: Library not loaded: @ rpath / Lottie .framework / Lottie
Referred from: ... / Debug iphone simulator / Framework.framework / Framework
Cause: Image not found
know this I'm stuck. what I don't understand is why only lottie
have this problem, i had no hoops to jump to use GoogleMaps
.
how do I use lottie-ios
] cocoalod in such a way that it is completely contained in MY-Framework
so when I share it with a customer, they can just drop it into the App and not worry about any addictions?
Basically How It Works Currently With Only GoogleMaps
Source link