Universal static lib for iOS Simulator (x86_64 and arm64/M1) and iPhone (arm64). How?

Hello everyone!

Got stacked with issues of creating universal static lib for all of possible platforms? Is it possible to create fat *.a library file that will contain all of possible versions:

  1. Simulator arm64
  2. Simulator x86_64
  3. iPhone arm64

Apple Recommended

  • Thx for rapid reply. Appreciate it. About lipo complaining perfectly aware. This is the reason why wrote the question here.

    My library written with Objective-C because it's using in C++ project. Is it possible to create XCFramework for Objective-C source code? Is there any examples of XCFramework for Objective-C?

  • Sorry, I didn't see your response earlier.

    I've made a small example here (to show a Swift problem I had, the Objective-c part works fine though): https://github.com/theodelrieu/xcframework_swift_issue

Add a Comment

Replies

  • Thx for rapid reply. Appreciate it. About lipo complaining perfectly aware. This is the reason why wrote the question here.

    My library written with Objective-C because it's using in C++ project. Is it possible to create XCFramework for Objective-C source code? Is there any examples of XCFramework for Objective-C?

  • Sorry, I didn't see your response earlier.

    I've made a small example here (to show a Swift problem I had, the Objective-c part works fine though): https://github.com/theodelrieu/xcframework_swift_issue

Add a Comment