uezo/ChatdollKit

iOS build failed

Closed this issue · 0 comments

uezo commented

Succeed iOS build on Unity but failed on Xcode.

image

It works by setting the conditional compile like below:

namespace ChatdollKit.IO
{
    public class WebGLMicrophone : MonoBehaviour
    {
#if UNITY_WEBGL
        [DllImport("__Internal")]
        private static extern void InitWebGLMicrophone(string targetObjectName);
        [DllImport("__Internal")]
        private static extern void StartWebGLMicrophone();
        [DllImport("__Internal")]
        private static extern void EndWebGLMicrophone();
        [DllImport("__Internal")]
        private static extern int IsWebGLMicrophoneRecording();

          :
          :

        }
#endif
    }
}