Wednesday, February 7, 2024
HomeiOS Developmentios - Shifting Xcode's .xcframework to a different location programmatically

ios – Shifting Xcode’s .xcframework to a different location programmatically


I am making an attempt to maneuver xcframework into the foundation folder of my venture’s important construct goal (Unity-IPhone).

Once I drag & drop, as proven on the screenshots – it builds correctly, and I can archive correctly and add to retailer. Every part works.

enter image description here

enter image description here

enter image description here

Once I do it programmatically nevertheless, I get App Retailer Add errors:

IASDKCore.xcframework isn't contained in a accurately named listing. It ought to be below "Frameworks"

To do it programmatically I take advantage of Unity’s API’s (PBXProject.AddFile() and so on.):

    Checklist<string> frameworks = new Checklist<string> {
        Path.Mix("Pods", "Fyber_Marketplace_SDK", "IASDKCore", "IASDKCore.xcframework"),
        Path.Mix("Pods", "smaato-ios-sdk", "vendor", "OMSDK_Smaato.xcframework"),
    };
    
    foreach (string framework in frameworks) {
        var t = framework.Cut up("/")[^1];
        var frameworkPath = venture.AddFile(src, t );
        var newFileGUID = venture.FindFileGuidByProjectPath(t);

        venture.AddFileToBuild(mainTargetGuid, newFileGUID);
        venture.AddFileToEmbedFrameworks(mainTargetGuid, newFileGUID);
    }

I can see the file in Xcode within the root folder, added as a reference, however one thing remains to be flawed.

Do you guys have any concepts? What truly occurs inside XCode after I drag & drop the file? I am making an attempt to recreate it by way of code however cannot get it working.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments