compiling for iOS 11.0, but module 'Capacitor' has a minimum deployment target of iOS 12.0

Issue #6 resolved
Naydson Mariosa created an issue

Hello thank you for your nice plugin! I’m using it on production environment and it works very well!

I’m facing this problem after upgrading my projetct to capacitor v3. The problem insists even after exclude “ios” environment cap and recreating.

Users/naydson/Documents/projetos/ticketcard-eventos/node_modules/@johnbraum/capacitor-qrscanner/ios/Plugin/Plugin.swift:2:8:
error: compiling for iOS 11.0, but module 'Capacitor' has a minimum deployment target of iOS
12.0:
/Users/naydson/Documents/projetos/ticketcard-eventos/ios/DerivedData/39804EA5-8280-441C-AA5D-0380206DA55B/Build/Products/Debug-iphonesimulator/Capacitor/Capacitor.framework/Modules/Capacitor.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
import Capacitor
^

    CompileSwift normal x86_64
    /Users/naydson/Documents/projetos/ticketcard-eventos/node_modules/@johnbraum/capacitor-qrscanner/ios/Plugin/QRScannerDelegate.swift
    (in target 'JohnbraumCapacitorQrscanner' from project 'Pods')
    cd /Users/naydson/Documents/projetos/ticketcard-eventos/ios/App/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
    -frontend -c

I put entire log in attachment. I'm sorry if I can't report it using this channel.

Thank you!

Comments (3)

  1. Marcel Golob repo owner

    Hi! Yeah I had the same issue. I was not able to fix in in the plugin code, but when you open your xcode project and open the build settings for the PLugin you can set the deployment target manually. See screenshot attached. I will fix this in the plugin code soon. But for now the workaround should solve your problem.

  2. Log in to comment