While I’m building a iOS build, I’m having this error:
[!] CocoaPods could not find compatible versions for pod "scandit-datacapture-frameworks-core":
In Podfile:
scandit-datacapture-frameworks-core (= 6.28.1)
I’ve tryed two methods on the config.xml file
First
<plugin name="ScanditdataCapture" spec="https://github.com/Scandit/scandit-cordova-datacapture-core.git" />
<plugin name="ScanditBarcodeCapture" spec="https://github.com/Scandit/scandit-cordova-datacapture-barcode.git" />
Second
<plugin name="scandit-cordova-datacapture-core" source ="npm" spec=""/>
<plugin name="scandit-cordova-datacapture-barcode" source ="npm" spec=""/>
I’ve also tested multiple spec versions, but I’m always having the same error.
I assume the issue is on the build side?
Please let me know if I need to fiddle with settings in my config to fix it.
Could you please send us the entire log?
here’s a URL with the full log: MyShelf 2.0 QA MBS log.txt - Google Drive
here’s a URL with the config.xml: config.xml - Google Drive
Please try setting the deployment-target
preference to iOS 13 or above. Your plugin requires this.
<preference name="deployment-target" value="13.0" />
Perfect!
I just needed to add an extra preference code line and it worked
<preference name="deployment-target" value="13.0" />
<preference name="SwiftVersion" value="4.0" />
Thank you very much!
But how did you know that the preference deployment-target was needed?
What did I miss?
The error in the log said:
Specs satisfying the `scandit-datacapture-frameworks-core (= 6.28.1)` dependency were found, but they required a higher minimum deployment target.
The default deployment target for cordova iOS is currently iOS 11. However, looking at the podspec for the scandit-datacapture-frameworks-core
, it requires iOS 13.