Can't run app in simulator/device because of error "Library not loaded: mokoMvvmFlowSwiftUI"
nathalia2112 opened this issue · comments
Nathalia Rodrigues commented
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)
...
Nathalia Rodrigues commented
Helo, guys! I still see the problem, do you have any ideia?
João Moreira commented
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.
Aleksey Mikhailov commented
duplicate of #186