how to correctly build an app for device and simulator that conditionally uses the correct framework. (not a universal/fat framework)

Have obtained separate frameworks for device and simulator, and I want to integrate those frameworks to achieve the desired functionality.
I have included the simulator framework in my carthage framework project. When I am compiling my framework, I am getting the following error

building for iOS-armv7 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture armv7:
"OBJCCLASS$...", referenced from:
objc-class-ref in ViewController.o
"OBJCCLASS$...", referenced from:
objc-class-ref in DepedencyInjector.o
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can someone please help me resolve this
how to correctly build an app for device and simulator that conditionally uses the correct framework. (not a universal/fat framework)
 
 
Q