Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error #397

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions plugins/Editor/UnityWebViewPostprocessBuild.cs
Expand Up @@ -4,7 +4,9 @@
using System.Xml;
using UnityEditor.Android;
using UnityEditor.Callbacks;
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using UnityEditor;
using UnityEngine;

Expand Down Expand Up @@ -79,6 +81,8 @@ public class UnityWebViewPostprocessBuild
#endif
}
#endif

#if UNITY_IOS
if (buildTarget == BuildTarget.iOS) {
string projPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject();
Expand All @@ -87,6 +91,7 @@ public class UnityWebViewPostprocessBuild
proj.AddFrameworkToProject(target, "WebKit.framework", false);
File.WriteAllText(projPath, proj.WriteToString());
}
#endif
}

private static XmlElement SearchActivity(XmlDocument doc) {
Expand Down