icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development

Home Page:https://moko.icerock.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run app in simulator/device because of error "Library not loaded: mokoMvvmFlowSwiftUI"

nathalia2112 opened this issue · comments

I've created MultiPlatformLibrary (KMM) and I'm using it in my ios project.
I also installed mokoMvvmFlowSwiftUI using pods but when I try to run my project in simulator or in my device I get this error:

dyld[19421]: Library not loaded: @rpath/mokoMvvmFlowSwiftUI.framework/mokoMvvmFlowSwiftUI
Referenced from: 
/Users/myuser/Library/Developer/CoreSimulator/Devices/device/data/Containers/Bundle/Application/ap/Project.app/Project  
Reason: tried: '/Users/myuser/Library/Developer/Xcode/DerivedData/Project-id/Build/Products/Debug-iphonesimulator/mokoMvvmFlowSwiftUI.framework/mokoMvvmFlowSwiftUI' (no such file), 
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/mokoMvvmFlowSwiftUI.framework/mokoMvvmFlowSwiftUI' (no such file), 
'/usr/lib/swift/mokoMvvmFlowSwiftUI.framework/mokoMvvmFlowSwiftUI' (no such file)
(lldb) 
...

Helo, guys! I still see the problem, do you have any ideia?

I'm probably a bit too late, but I fixed this problem using the solution on this StackOverflow question. Just needed to add the lib onto the Frameworks, Libraries and Embedded Content.

duplicate of #186