Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

ele sempre esta me mostrando este erro no r config.xml file mas estou usando oque o professor deixou na aula do mesmo jeito pode me ajudar?

cordova plugin add phonegap-plugin-barcodescanner
Installing "phonegap-plugin-barcodescanner" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Installing "phonegap-plugin-barcodescanner" for browser
Installing "phonegap-plugin-barcodescanner" for ios
Failed to install 'phonegap-plugin-barcodescanner': CordovaError: Could not find *-Info.plist file, or config.xml file.
    at Object.parseProjectFile [as parse] (C:\Users\Cristiano\Desktop\garconapp\platforms\ios\cordova\lib\projectFile.js:49:15)
    at Api.addPlugin (C:\Users\Cristiano\Desktop\garconapp\platforms\ios\cordova\Api.js:223:33)
    at handleInstall (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
    at C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
    at _fulfilled (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
    at C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49
    at flush (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
(node:3608) UnhandledPromiseRejectionWarning: CordovaError: Could not find *-Info.plist file, or config.xml file.
    at Object.parseProjectFile [as parse] (C:\Users\Cristiano\Desktop\garconapp\platforms\ios\cordova\lib\projectFile.js:49:15)
    at Api.addPlugin (C:\Users\Cristiano\Desktop\garconapp\platforms\ios\cordova\Api.js:223:33)
    at handleInstall (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
    at C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
    at _fulfilled (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
    at C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49
    at flush (C:\Users\Cristiano\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
(node:3608) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3608) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1 resposta

Oi Bruno, ta estranho pq ele so da erro na hora de instalar no ios, nao no android. Tem cheiro de que o projeto ios ta com algum bug interno.

Eu tentaria regera-lo antes com:

cordova platform rm ios
cordova platform add ios