Esempio n. 1
0
 public void EditProjectSettingWithUnity(PBXProject pbxProject)
 {
     foreach (var porter in porterList)
     {
         porter.EditProjectSettingWithUnity(pbxProject);
     }
 }
Esempio n. 2
0
    public override void EditProjectSettingWithUnity(PBXProject pbxProject)
    {
        //bitcode disable
        string bitTarget = pbxProject.TargetGuidByName("Unity-iPhone");

        pbxProject.SetBuildProperty(bitTarget, "ENABLE_BITCODE", "NO");
    }
Esempio n. 3
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);
    }
Esempio n. 5
0
 public override void EditProjectSettingWithUnity(PBXProject pbxProject)
 {
 }
Esempio n. 6
0
 public abstract void EditProjectSettingWithUnity(PBXProject pbxProject);