Hi,
I'm wondering if anyone has explored wrapping the J2Objc XCFrameworks as Swift Binary Packages, and if anyone can share some wisdom on my experiences.
Swift Package Manager initially only worked with source code, but in the years since it was first introduced its gained some extra capabilities, such as wrapping resources and wrapping binary frameworks.
Which provides a 'wrapper' package for the full JRE.xcframework from j2objc 2.8.
And I had to futz with header search paths etc in the project.
The upshot is... it works. The app project compiles and runs, but *at the same time* Xcode complains that it cant find j2objc / Java constructs in scope, such as NSDictionaryMap.
I feel like i'm doing something (or several things) wrong, and i'm a bit lost.
Should the package have the headers in it? The XCFramework obviously has the headers in that, but unless I add them to the package itself, I don't see how the app hosting the app knows to find them (I had hoped it would be automagic...)
Anyone got any wisdom to share here? I feel like adding the JRE runtime as a Swift Package could be a cleaner way to integrate it, but there are clearly some stumbling blocks.
Thanks!
- Rory