you should make a fat Library:
for make a fat library do these step by step :
1 - Build yourFreamework target for iOS simulator and extract framework from products folder on your desktop.
2 - Rename the framework to yourFrameworkName-sim.framework so that it is distinguishable later.
3 - Repeat the steps 1 and 2 for iOS device. You can select ‘Generic iOS Device’. Don’t forget to rename the framework to yourFrameworkName-dev.framework.
4 - Use the following command to combine both binaries into a single fat binary file (Make sure you are on desktop while running this command).
$lipo -create ./yourFrameworkName-sim.framework/yourFrameworkName ./yourFrameworkName-dev.framework/yourFrameworkName -output ./yourFrameworkName
5 - Copy yourFramework binary file created in above step and replace it with the binary in yourFrameworkName-dev.framework folder.
6 - Open ‘Info.plist’ file contained in the same folder.
7 - Add ‘iPhoneSimulator’ string in ‘CFBundleSupportedPlatforms’ array.
8 - The final plist file would look like this:

9 - From folder :
yourFrameworkName-sim.framework/Modules/yourFrameworkName.swiftmodule/
copy ‘x86_64.swiftdoc’ and ‘x86_64.swiftmodule’ and paste them to
yourFrameworkName-dev.framework/Modules/yourFrameworkName.swiftmodule/
10 - By following above steps you have converted yourFrameworkName-dev.framework from device only to a universal fat framework. Rename it to yourFrameworkName.framework.
11 - Include this framework via ‘Embeded Binaries’ option in Xcode. Import the module in your file and you would be able to compile it successfully.