skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

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


  2. That means you built the library for iOS. You need to build it for the iOS Simulator. Eg:

    xcodebuild -sdk iphonesimulator

    You will probably want to distribute separate copies of your library: one for the sim and one for device.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search