Closed nikolay-fomichev-nl closed 8 months ago
Hey @nikolay-fomichev-nl, I'm unable to reproduce this here using a fresh project and the Demo00-ScreenCapture scene with:
Failing to find the symbol would suggest the plugin isn't being copied into the built Xcode project correctly. It should be listed in the "Frameworks, Libraries and Embedded Content" of the Unity-iPhone target as shown here:
Hello @MorrisRH. I checked the project - embed type is set to "Embed & Sign" for AVProMovieCapture and I can find the framework inside of Frameworks
folder in the final .app
file. I will try to reproduce the issue on a sample project.
Comparing to your setup, though, we have Unity embedded as a library - we do not have standalone Unity application. Could it be somehow related to that?
Yeah, Unity as a library is the issue here. You need to remove AVProMovieCapture.framework from the Unity-iPhone target and add it to your application target's list of frameworks.
Hello. A quick update - the issue was in the build settings of the application target in the project. After fixing them I get AVProMovieCapture running on Xcode 15 as expected without any crashes. Thank you for looking into it.
Unity Version
2021.3.24f1, 2023.2.15f1
AVPro Movie Capture Version
5.2.4
Which platform(s) are you using?
iOS
Which OS version(s) are you using?
iOS 13+
Which rendering API(s) are you using?
Metal
Hardware
iPhone XR
Which capture component are you using?
Capture From Screen
Capture mode
Realtime
Which output mode are you using?
Video file
Video codecs
H264
Audio source
None
Audio codecs
AAC
Any other component configuration
No response
The issue
Hello.
Soon we'll need to use Xcode 15 to build App Store apps and I'm having an issue with AVProMovieCapture. Whenever I open a Unity scene where AVProMovieCapture is used the app crashes with the following message:
This is happening on the following line of
AVProMovieCapture.m
file:This happens if the project is built using the latest Xcode 15 (15.3 at the moment), but it is not happening if the project is built using Xcode 14.3.
Starting April 29, 2024 all apps submitted into App Store must be built with Xcode 15 - https://developer.apple.com/news/upcoming-requirements/?id=04292024a.
Log output