HomeiOS Developmentios - Can I bind a swift xcframework to MAUI when I'm...

ios – Can I bind a swift xcframework to MAUI when I’m utilizing VS on Home windows, related to a distant MAC?


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:

  1. I’ve created an Xcode Framework mission on the Mac
  2. Uncovered the bits I wish to make obtainable in MAUI utilizing the @objc directive
  3. Construct my 64/32 bit builds
  4. Used lipo to transform them right into a FAT
  5. Copied these frameworks over to my PC and put them the place my binding mission can discover them
  6. Used sharpie to create my ApiDefinition.cs and StructsAndEnums.cs
  7. Referenced my binding mission in my MAUI mission, accurately limiting it to net9-ios goal
  8. Can see my mission reference / namespaces within the object explorer in VS
  9. 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?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments