I’ve fruitlessly been attempting to get my Swift (xcode) framework certain to my MAUI mission. The documentation could be very complicated. It’s unclear whether or not this solely works when utilizing xCode and Visible Studio for Mac, or whether or not it will probably work in a PC / Mac setup.
To date:
- I’ve created an Xcode Framework mission on the Mac
- Uncovered the bits I wish to make obtainable in MAUI utilizing the @objc directive
- Construct my 64/32 bit builds
- Used
lipo
to transform them right into a FAT - Copied these frameworks over to my PC and put them the place my binding mission can discover them
- Used sharpie to create my ApiDefinition.cs and StructsAndEnums.cs
- Referenced my binding mission in my MAUI mission, accurately limiting it to net9-ios goal
- Can see my mission reference / namespaces within the object explorer in VS
- Nevertheless that is so far as I can get. There as 2 notable issues:
(a) I can not reference the namespace in my binding mission in my PlatformsiOS code – it will not compile, and code completion is not going to present the namespaces
(b) The dll which is referenced from the binding library is just 12K in dimension (if it is a skinny wrapper, I do not see why this needs to be a problem – nonetheless, someway all of the framework recordsdata want pulling throughout for the ultimate construct)
My binding mission mission file appears to be like like:
net9.0-ios
allow
true
true
true
Framework
True
True
Can anybody assist me get this over the road?