iOS build failed
Closed this issue · 0 comments
uezo commented
Succeed iOS build on Unity but failed on Xcode.
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
}
}