XCFramework from static library fail to import no such module

Viewed 13

I have pre-compiled static library written in objective-c. I would like to distribute this as an xcframework.

Using xcodebuild I receive an error 'binaries with multiple platforms not supported.

So I used lipo to pull out thin slices. I ended up with two files that I named LibraryARM64.a and Libraryx86_64.a.

I passed both of these into Xcode build and I successfully generated a xcframework file.

enter image description here

Drag and dropping this into Xcode iOS app target builds fine. Attempting to import fails with 'no such module', presumably because I need to set the library search path or include a module map? Or a bridging header?

Any help would be appreciated.

0 Answers
Related