TL;DR
How to move/distribute built framework for iOS to another machine?
Full story
I have a framework in KMP with cocoapods dependency. I'm building it by ./gradlew
modulepodspec, then add the location to Podfile and run pod install. Finally, I'm building iOS project that has the build phase from .podspec and it uses Framework and it's all good.
Now, I need to plug the output framework into a project on another machine, so I go to build/bin/iosX64/debugFramework and send the myproject.framework to my friend on the another machine. He plugs it into Xcode, runs a build for simulator and gets
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AnalyticsInitParameters", referenced from:
objc-class-ref in Analytic.o
"_OBJC_CLASS_$_AnalyticsAnalytics", referenced from:
objc-class-ref in Analytic.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1. Is there a right way to distribute resulted iOS framework?
2. What am I doing wrong?