uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot
Apache License 2.0
754 stars 76 forks source link

iOS build failed #218

Closed uezo closed 1 year ago

uezo commented 1 year ago

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
    }
}