I have built a custom swift framework with the way described on this blog and trying to use it in swift project.
My framework used pod for third party libraries (Alamofire, APAddressBook, etc).
Successfully built framework but getting crashes when I use in App.
This is the crash log.
dyld: Library not loaded: @rpath/APAddressBook.framework/APAddressBook Referenced from: /private/var/containers/Bundle/Application/C878FECA-D2B5-4E92-B270-AC9668EF3A59/Demo.app/Frameworks/DemoSDK.framework/DemoSDK Reason: image not found
I've tried to google to find the solution and found this similar question&answer.
As Pasta's answer, I added the Copy the Files on my framework project's build phase and added pod installed frameworks there. When I tried again to build framework and use in app, above crash log has gone but another crash happened.
Some similar answers are on here. But my question is a bit different with it. Please read above again. I've already fixed the Image not found issue. Now facing the "required code signature missing" for pod installed frameworks.
This is new crash log.
d
yld: Library not loaded: @rpath/APAddressBook.framework/APAddressBook Referenced from: /private/var/containers/Bundle/Application/A925B72C-4050-4838-8819-BC7809606ABF/Demo.app/Frameworks/DemoSDK.framework/DemoSDK Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/A925B72C-4050-4838-8819-BC7809606ABF/Demo.app/Frameworks/DemoSDK.framework/Frameworks/APAddressBook.framework/APAddressBook: required code signature missing for '/private/var/containers/Bundle/Application/A925B72C-4050-4838-8819-BC7809606ABF/Demo.app/Frameworks/DemoSDK.framework/Frameworks/APAddressBook.framework/APAddressBook'