Search code examples
iosxcodeios-simulator

In Xcode, how to build an Objective-C lib for an app to run on iOS SIMULATOR?


We get the error below when we try to build an app that uses our Obj-C lib.

What do we set in the lib project to prevent this error?

Ultimately, app must run on iPhone (ios 12 or higher), but we want it to first run on simulator.

Building for iOS Simulator, but the linked library 'libmobile_sys_hub_lib.a' was built for iOS.

Solution

  • Open Xcode active scheme list (left side of project title bar) and select IOS SIMULATOR