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

Windows IL2CPP Build Issues: Types not found in NativePlugin #151

Closed
momo-the-monster opened this issue Jan 7, 2022 · 2 comments
Closed
Assignees
Labels
Bug 🐛 Something isn't working fixed The issue has been fixed and will be available in the next release
Milestone

Comments

@momo-the-monster
Copy link

momo-the-monster commented Jan 7, 2022

Describe the bug
When building a project in Unity 2019.4.31f1 using the latest AVProMovieCapture package avilable, I get the following two errors:

Assets\External Assets\AVProMovieCapture\Runtime\Scripts\Internal\CaptureBase.cs(2975,44): error CS0426: The type name 'RequestPhotoLibraryAuthorisationDelegate' does not exist in the type 'NativePlugin'

Assets\External Assets\AVProMovieCapture\Runtime\Scripts\Internal\CaptureBase.cs(2975,44): error CS0426: The type name 'RequestPhotoLibraryAuthorisationDelegate' does not exist in the type 'NativePlugin'

Your Setup (please complete the following information):

  • Unity version: 2019.4.31.f1
  • AVPro Movie Capture version: 4.7.6
  • Operating system version: Windows 10 Pro 19041.1348
  • Capture component used: CaptureFromCamera and CaptureFromScreen
  • Capture settings (resolution, frame-rate, codec): N/A

To Reproduce
Steps to reproduce the behavior:

  1. Add AVPro Movie Capture Package
  2. Change 'Scripting Basckend' to IL2CPP
  3. Build Project

Logs

-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/RenderHeads.AVProMovieCapture.Runtime.dll
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.

Assets\Plugins\RenderHeads\AVProMovieCapture\Runtime\Scripts\Internal\CaptureBase.cs(2895,44): error CS0426: The type name 'RequestAudioCaptureDeviceAuthorisationDelegate' does not exist in the type 'NativePlugin'
Assets\Plugins\RenderHeads\AVProMovieCapture\Runtime\Scripts\Internal\CaptureBase.cs(2975,44): error CS0426: The type name 'RequestPhotoLibraryAuthorisationDelegate' does not exist in the type 'NativePlugin'
-----CompilerOutput:-stderr----------
@MorrisRH MorrisRH self-assigned this Jan 7, 2022
@MorrisRH MorrisRH added the Bug 🐛 Something isn't working label Jan 7, 2022
@MorrisRH
Copy link
Collaborator

MorrisRH commented Jan 7, 2022

A fix for this will be in the next release, however you can fix the c# by doing the following:

Change lines 2894 and 2974 of CaptureBase.cs from:

#if ENABLE_IL2CPP

to:

#if ENABLE_IL2CPP && (UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || (UNITY_IOS && !UNITY_EDITOR))

@MorrisRH MorrisRH added this to the Next Release milestone Jan 7, 2022
@MorrisRH MorrisRH added the fixed The issue has been fixed and will be available in the next release label Jan 7, 2022
@AndrewRH AndrewRH modified the milestones: Next Release, 4.7.7 Jan 31, 2022
@AndrewRH
Copy link
Member

AndrewRH commented Feb 3, 2022

4.7.7 has now been released with the fix for this issue

@MorrisRH MorrisRH closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working fixed The issue has been fixed and will be available in the next release
Projects
None yet
Development

No branches or pull requests

3 participants