RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Making vision os build give signature of “AVProVideo.xcframework” cannot be verified. error message #1790

Closed futurristic09 closed 3 months ago

futurristic09 commented 3 months ago

Hello, I am using AVPro video player to play video in vision os. When I try to make the build and run in simulator getting error The signature of “AVProVideo.xcframework” cannot be verified. in xcode. How to resolve this issue? Thanks

I am using unity version 2022.3.19f1 and avpro trial version [AVPro Video v3.0.0-RC2]

MorrisRH commented 3 months ago

The signature being incorrect suggests that either the plugin failed to be copied correctly from Unity as part of the build process, or it has been tampered with and the xcframework folder is either missing files or contains extra files.

The layout of the xcframework folder should match this: AVProVideo.xcframework

There should be some logging as part of the build detailing what is being done and if there are any errors and will look similar to this (this output is from RC3 which we will be releasing very soon):

[AVProVideo] Post-processing generated Xcode project...
[AVProVideo] Opening Xcode project at: /Users/User/Path/To/Built/Xcode/Project
[AVProVideo] Found plugin at 'Assets/AVProVideo/Runtime/Plugins/visionOS/AVProVideo.xcframework'
[AVProVideo] Copying AVProVideo.xcframework into the Xcode project at Libraries/AVProVideo
[AVProVideo] Writing AVProVideoBootstrap.m to the UnityFramework target
[AVProVideo] Writing AVProVideoForceSwift.swift to the UnityFramework target
[AVProVideo] Finished modifying Xcode project

If there are any error messages reported in the log as part of the build process please paste them here so we can investigate further.

futurristic09 commented 3 months ago

Ok, thanks for your help. I am not getting any error as similar above. But i have done one things that removed the . xrOS-arm64 PrivacyInfo.xcprivacy libAVProVideo.a library for trying to resolve the error message as in post https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1789 (because i just only want to test build on vision os simulator). So i think that was the main cause of error.

futurristic09 commented 3 months ago

When do you plan to release RC3 version. Because i have an important project on vision os working on it, and it play the 8K video by url. and your plugin is best suited for that type videos. So please release the updated fixed version as soon as possible. Thanks!

Ste-RH commented 3 months ago

@futurristic09 RC3 has been released

guerwan commented 1 month ago

@Ste-RH We have the same error with version 3.0.1.

ACCIAI0 commented 1 month ago

@Ste-RH We have the same error with version 3.0.1.

Same here, but with the trial version on ios

guerwan commented 1 month ago

It's also on iOS for us but with the full version.

aaronaccessvr commented 2 weeks ago

Getting the same error on version 3.0.3

MorrisRH commented 2 weeks ago

Failure to verify the signature is down to files being present in the framework that weren't there when it was code signed. The most likely cause of this is Unity's meta files and Finder's .DS_Store files. You will need to use the terminal to purge them as using Finder will leave the .DS_Store files behind.

We have added a lot of checking to the build process to handle this as Unity only recently added support for xcframeworks. We've not been able to reproduce this here so if you can let us know the specific version of Unity you are using and whether you're building for the simulator or device.

As a last resort you can remove the _CodeSignature folder from within the framework. Xcode will warn you that it is missing but you should be able to build.

aaronaccessvr commented 2 weeks ago

Thanks @MorrisRH. I deleted the Unity .meta files and ran find . -name ".DS_Store" -print -delete in the root of the built project, and after that XCode verified the signature OK!