You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following project structure with iOSAppKit as a dynamic framework and iOSAppUI as a static library as recommended here and I found two workarounds to omit the problem:
Workaround
Downside
Change the iOSAppUI from a static library to a dynamic framework.
Apple recommended using a maximum of 6 dynamic frameworks during WWDC and my app is already over this limit.
Embed the framework directly with .framework(path: "../kmm/shared/build/xcode-frameworks/Debug/iphonesimulator16.2/SharedCore.framework").
It is only possible to specify one static path which is a problem when the framework is built for a release or the simulator version changes.
Does anyone know how to solve this problem without using one of the workarounds?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To embed a KMM framework in an iOS app the following steps are necessary:
$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
)$(inherited) -framework shared
)When starting the app I now receive the error that the KMM framework could not be found.
The framework itself is integrated into all targets and the steps to reproduce are:
cd iosApp
tuist generate
Show example source code
KMM-Demo.zip
I have the following project structure with
iOSAppKit
as a dynamic framework andiOSAppUI
as a static library as recommended here and I found two workarounds to omit the problem:iOSAppUI
from a static library to a dynamic framework..framework(path: "../kmm/shared/build/xcode-frameworks/Debug/iphonesimulator16.2/SharedCore.framework")
.Does anyone know how to solve this problem without using one of the workarounds?
Beta Was this translation helpful? Give feedback.
All reactions