There are a number of fatal exceptions that will throw when IWCT is compiled under iOS. Followings are the changes required for IWCT to work on the iOS.
Path: /Assets/GoogleVR/Scripts/InstantPreview/Internal/InstantPreview.cs
private static void RunCommand(string fileName, string arguments, out string output, out string errors)
{
if (string.IsNullOrEmpty(fileName)) {
output = "";
errors = "";
return;
Path:
/Assets/IBMSdkCore/Utilities/WaveFile.cs
public static AudioClip ParseWAV(string clipName, byte[] data)
{
if (data.Length == 0) {
return null;
}
Path:
/Assets/Scripts/WatsonLogic.cs
private void OnError(string error)
{
Active = false;
Log.Debug("AvatarPatternError.OnError", "Error! {0}", error);
OnListen();
}
private void Start()
{
LogSystem.InstallDefaultReactors();
eventActions = GameObject.FindObjectOfType<EventActions>();
eventActions = new EventActions();
Replace Newtonsoft JSON with AOT IILC commpatible version.
Path:
/Assets/IBMSdkCore/ThirdParty/JsonDotNet/AOT/Newtonsoft.Json.dll
Replace by the one from Daddon