Exemple #1
0
    public override void EditProjectSettingWithUnity(PBXProject pbxProject)
    {
        //bitcode disable
        string bitTarget = pbxProject.TargetGuidByName("Unity-iPhone");

        pbxProject.SetBuildProperty(bitTarget, "ENABLE_BITCODE", "NO");
    }
Exemple #2
0
    public override void EditProjectSettingWithUnity(PBXProject pbxProject)
    {
        ///swift
        string targetGuid = pbxProject.TargetGuidByName("Unity-iPhone");

        pbxProject.SetBuildProperty(targetGuid, "SWIFT_VERSION", "Swift5");
        pbxProject.SetBuildProperty(targetGuid, "SWIFT_OBJC_BRIDGING_HEADER",
                                    "Libraries/Plugins/iOS/Unity-iPhone-Bridging-Header.h");
    }
    static void AddDynamicFrameworksForUnity5(string path)
    {
        UnityEditor.iOS.Xcode.Custom.PBXProject pbxProj = new UnityEditor.iOS.Xcode.Custom.PBXProject();
        pbxProj.ReadFromFile(path);

        string targetGuid = pbxProj.TargetGuidByName("Unity-iPhone");

        const string defaultLocationInProj = "Frameworks/AdDeals/Plugins/iOS";
        const string exampleFrameworkName  = "AdDeals.framework";

        string framework = Utils.PathCombine(defaultLocationInProj, exampleFrameworkName);
        string fileGuid  = pbxProj.AddFile(framework, "Frameworks/" + framework, PBXSourceTree.Sdk);

        PBXProjectExtensions.AddFileToEmbedFrameworks(pbxProj, targetGuid, fileGuid);
        pbxProj.SetBuildProperty(targetGuid, "LD_RUNPATH_SEARCH_PATHS", "$(inherited) @executable_path/Frameworks");
        pbxProj.WriteToFile(path);
    }