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.
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.