Open WIStudent opened 3 years ago
I managed to override the deployment target using a post_install hook in my root projects Podfile myProject/ios/App/Podfile
:
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
if target.name === 'TeamhiveCapacitorVideoRecorder'
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
end
end
But now i am getting errors in VideoRecorder.swift
Hi @WIStudent, I haven't updated Capacitor to 3.0. But I still can't start camera on iOS. Please, could you help me? After adding some code to MainActivity.java, Android started to work perfectly. But iOS doesn't even show Camera Preview, I just have black screen (stackPosition: 'back') 🤔 How did you start Camera on iOS before Capacitor 3.0?
I would really appreciate your help 🙏
Please don't ask off topic questions in issues. If you have an unrelated problem open a new issue.
We are using this plugin just as described in its documentation. Although we already replaced it on Android with our own internal plugin last year because capacitor-video-recorder stopped working on Android 11.
Since iOS 14.3 WKWebView supports the getUserMedia and MediaRecorder web apis so now we are currently working on replacing capacitor-video-recorder and our own plugin with a pure web implementation in our app.
Capacitor 3.0 sets the iOS deployment target to 12.0, but capacitor-video-recorder uses 11.0 as deployment target, resulting in the following error when trying to build the iOS app:
Compiling for iOS 11.0, but module 'Capacitor' has a minimum deployment target of iOS 12.0