For an framework to be compatible with various devices it has to be compiled for them specifically, This script does those tasks in single shot.
- Select Target > Build Phases
+
>New Run Script Phase
- copy and paste this script in the script area.
https://medium.com/@imsantoshk/ios-static-library-7c62bb984e6