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

iOS build failed #218

Closed
uezo opened this issue Mar 26, 2023 · 0 comments
Closed

iOS build failed #218

uezo opened this issue Mar 26, 2023 · 0 comments

Comments

@uezo
Copy link
Owner

uezo commented Mar 26, 2023

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
    }
}
uezo added a commit that referenced this issue May 7, 2023
@uezo uezo closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant