0

I have a framework that’s split into two bundles. One of them supports the iPhone Simulator platform, the other supports the iPhone OS platform. And I have an app target that needs to link against this framework & embed it in the app bundle. How do I setup the build so that the app uses the iPhone OS version of the framework when building for the device and the iPhone Simulator version when building for the simulator?

zoul
  • 102,279
  • 44
  • 260
  • 354
  • 1
    Are they the same framework but just compiled for simulator and for device separately? If yes, you can use `lipo` tool to convert to universal .a in order to have an universal framework. `lipo -create simulator.a device.a -output universal.a` – Duyen-Hoa Jun 28 '17 at 12:57
  • It’s XCTest, so I’m not sure what the differences are. I’ll try that, thank you! – zoul Jun 28 '17 at 16:17
  • Or, you can put every lib into separate directory and change the framework search paths in your build settings. – Sulthan Jun 29 '17 at 14:52

0 Answers0