해결방법

PlayerSettings → Other Settings → Managed Stripping Level 을 Minimal로 변경

발생원인

예를 들어, Apple GameKit for Unity처럼 IL2CPP 상에서 네이티브 연동을 하는 패키지는, Reflection(리플렉션) 또는 직접 참조되지 않는 (그러나 런타임에 필요한) 클래스/메서드를 사용합니다. Stripping Level이 너무 높은 경우, 컴파일러가 “이건 쓰이지 않는 코드다”라고 판단하고 제거해 버려서, 런타임에 Default constructor not found 같은 MissingMethodException 이 발생할 수 있습니다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다