Is there a specific way of using pods or IBDesignables in iOS Frameworks?

98 Views Asked by At

I am working on a framework project. I have added a custom view using IBDesignable in the framework (present within the framework under the same target). I am using the 'TinyConstraints' pod for simpler constraint codes.

When I am using the custom view in the storyboard within the framework, it is not working and gives the following error:

error: IB Designables: Failed to render and update auto layout status for MyViewController (BYZ-38-t0r): dlopen(MyFramework.framework, 1): Library not loaded: @rpath/TinyConstraints.framework/TinyConstraints Referenced from: MyFramework.framework Reason: image not found


I have tried a lot of solutions found in similar posts but nothing works for me:
  • I tried the pod run path setup post-installation, but it still gave the same error.
  • I tried clearing the derived data, cleaning the build folder and restarting XCode as well.

I have been struggling to get rid of it for hours. Any help is appreciated.

0

There are 0 best solutions below