Anytime I try to embed my xcframework (which has another xcframework embedded in it) in an iOS app and run it on a device I get this error in the console :
dyld[5028]: Library not loaded: @rpath/Calculator.framework/Calculator
Referenced from:...
It runs fine on the simulator however. I've tried several suggested solutions; modifying Runpath Search Paths
, Framework Search Paths
but to no avail.
Is there something I'm missing or you can't have nested frameworks for iOS as per this question? If so why does it run on the simulator though.