Failed to restore plugin "phonegap-plugin-barcodescanner".

Good day

I’m trying to compile my previous phonegap app using VoltBuilder. The Android build is working perfectly, but the IOS build does not work with a project containing the barcode scanner plugin.

When I try to compile it, I get the following error:

UserError: Failed to restore plugin “phonegap-plugin-barcodescanner”. You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /Users/agent03/Code/VoltBuilder/upload/cc06970d-0011-493d-8d5f-49e4d17775d5/platforms/ios

When I try to use another plugin, cordova-plugin-barcodescanner, I get the same message:

UserError: Failed to restore plugin “cordova-plugin-barcodescanner”. You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in

Is there any way I can get around this?

Hi doczure,

I cannot help you a lot for IOS but I can share about cordova-plugin-barcodescanner on Android. We have seen that this version is older than the phonegap version, the scanning frame is smaller than the phonegap version and we experienced wrong reading for long barcode (like 123456789000-0010).

For generating the IOS app, have you tried with recent forks of phonegap-plugin-barcodescanner, there are several available on npm ?

Kind regards,
Michael

Thank you very much
Ok, I will try other forks and see if that is working.

Kind Regards
Koo

No, it does not matter what I’m trying, I just keep on getting the same error on the barcode scanner plugin.

Here is my config file…

 <?xml version='1.0' encoding='utf-8'?>
<widget 
  xmlns="http://www.w3.org/ns/widgets" 
  xmlns:gap="http://phonegap.com/ns/1.0"
  id="com.app.testapp" 
  version="5.6.0"
  versionCode="560">
    <name>.test app</name>
    <description></description>

  <access origin="*://itunes.apple.com/*" subdomains='true'/>
  <allow-intent href="*://itunes.apple.com/*" />
  <allow-navigation href="*://itunes.apple.com/*" />

  <access origin="*://*.google.com/*" subdomains='true'/>
  <allow-intent href="*://*.google.com/*" />
  <allow-navigation href="*://*.google.com/*" />


  <platform name="ios">
    <preference name="phonegap-version"  value="cli-9.0.0" />
  </platform>
  
  <plugin name="com.phonegap.plugins.barcodescanner"/>

  <plugin name="cordova-plugin-inappbrowser" spec="~1.7.0" />
  <plugin name="cordova-plugin-camera" spec="4.0.3" />
  <plugin name="cordova-plugin-whitelist" spec="1.3.3" />
  <plugin name="cordova-plugin-file" spec="6.0.0" />
  <plugin name="cordova-plugin-device" />
  <plugin name="cordova-plugin-media" />
  <plugin name="cordova-plugin-geolocation" />
  <plugin name="cordova-plugin-dialogs" />

    <feature name="http://api.phonegap.com/1.0/camera" />
  <feature name="http://api.phonegap.com/1.0/device" />
    <feature name="http://api.phonegap.com/1.0/file"/>
  
    <platform name="ios" />

    <preference name="splash-screen-duration" value="200" />
    <preference name="target-device" value="universal" />
    <preference name="fullscreen" value="false" />
    <preference name="webviewbounce" value="false" />
    <preference name="prerendered-icon" value="true" />
    
    <preference name="AllowInlineMediaPlayback" value="true" />
    <preference name="MediaTypesRequiringUserActionForPlayback" value="false" />   
    <allow-navigation href="*youtube*" />
    <allow-navigation href="*ytimg*" />
    <allow-navigation href="*youtube-nocookie*" />  
    

  <platform name="ios">
    <icon src="www/res/icon/ios/icon-1024.png" width="1024" height="1024"/>
    <icon src="www/res/icon/ios/icon-small.png" width="29" height="29"/>
    <icon src="www/res/icon/ios/icon-small@2x.png" width="58" height="58"/>
    <icon src="www/res/icon/ios/icon-small@3x.png" width="87" height="87"/>
    <icon src="www/res/icon/ios/icon-small-40.png" width="40" height="40"/>
    <icon src="www/res/icon/ios/icon-small-40@2x.png" width="80" height="80"/>
    <icon src="www/res/icon/ios/icon-small-40@3x.png" width="120" height="120"/>
    <icon src="www/res/icon/ios/icon-small-50.png" width="50" height="50"/>
    <icon src="www/res/icon/ios/icon-small-50@2x.png" width="100" height="100"/>
    <icon src="www/res/icon/ios/icon.png" width="57" height="57"/>
    <icon src="www/res/icon/ios/icon@2x.png" width="114" height="114"/>
    <icon src="www/res/icon/ios/icon-60.png" width="60" height="60"/>
    <icon src="www/res/icon/ios/icon-60@2x.png" width="120" height="120"/>
    <icon src="www/res/icon/ios/icon-60@3x.png" width="180" height="180"/>
    <icon src="www/res/icon/ios/icon-72.png" width="72" height="72"/>
    <icon src="www/res/icon/ios/icon-72@2x.png" width="144" height="144"/>
    <icon src="www/res/icon/ios/icon-76.png" width="76" height="76"/>
    <icon src="www/res/icon/ios/icon-76@2x.png" width="152" height="152"/>
    <icon src="www/res/icon/ios/icon-167.png" width="167" height="167"/>
    <icon src="www/res/icon/ios/icon-83.5@2x.png" width="167" height="167"/>
    <!--  Storyboard portrait  -->
    <splash src="www/res/screen/ios/Default@2x~iphone~anyany.png"/>
    <splash src="www/res/screen/ios/Default@2x~iphone~comany.png"/>
    <splash src="www/res/screen/ios/Default@3x~iphone~anyany.png"/>
    <splash src="www/res/screen/ios/Default@3x~iphone~comany.png"/>
    <splash src="www/res/screen/ios/Default@2x~ipad~anyany.png"/>
    <splash src="www/res/screen/ios/Default@2x~ipad~comany.png"/>
  </platform>

</widget>

UserError: Failed to restore plugin “com.phonegap.plugins.barcodescanner”. You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /Users/voltbuilder/Code/VoltBuilder/upload/fbfd78d3-e3f1-46f6-b833-f285f6131ddc/platforms/ios

Let me have look…

com.phonegap.plugins.barcodescanner definitely has some problems. It hasn’t been updated in 3 years, and the GitHub repo for it is gone. It looks like the author deleted the GitHub repo, but not the npm entry.

We will be removing it from the Approved List. There are several other barcode controls - have you tried them?

Here’s the link to the npm entry.

I have tried these 3, but getting the same message

cordova-plugin-barcodescanner
com.phonegap-plugin-barcodescanner
phonegap-plugin-barcodescanner

The news is not good on these:

cordova-plugin-barcodescanner: Has not been updated by its author in 3 years. It has been discontinued by its author. Looking at the open issues, it looks like this one has serious bugs. We’ll remove it from the Approved list.

com.phonegap-plugin-barcodescanner: This plugin no longer exists in npmjs.org. We have removed it from the Approved list.

phonegap-plugin-barcodescanner: This plugin has been deprecated by its author. We have removed it from the Approved list.

I have tried the cordova-plugin-firebase-ml-kit-barcode-scanner plugin, but it looks like it is also not working. See part of the log file below:

....
Install complete for cordova-plugin-whitelist on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-whitelist on ios platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-whitelist to package.json
No scripts found for hook "after_plugin_add".
Discovered plugin "cordova-plugin-firebase-ml-kit-barcode-scanner". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-firebase-ml-kit-barcode-scanner, retrieving version from config.xml
No version for cordova-plugin-firebase-ml-kit-barcode-scanner saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-firebase-ml-kit-barcode-scanner to choose a compatible release
npm info for cordova-plugin-firebase-ml-kit-barcode-scanner did not contain any engine info. Fetching latest release
Calling plugman.fetch on plugin "cordova-plugin-firebase-ml-kit-barcode-scanner"
fetch: Installing cordova-plugin-firebase-ml-kit-barcode-scanner to 
Running command: npm install cordova-plugin-firebase-ml-kit-barcode-scanner --save-dev
Command finished with error code 0: npm install,cordova-plugin-firebase-ml-kit-barcode-scanner,--save-dev
Copying plugin "/node_modules/cordova-plugin-firebase-ml-kit-barcode-scanner" => "/plugins/cordova-plugin-firebase-ml-kit-barcode-scanner"
Calling plugman.install on plugin "/plugins/cordova-plugin-firebase-ml-kit-barcode-scanner" for platform "ios
Installing "cordova-plugin-firebase-ml-kit-barcode-scanner" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-firebase-ml-kit-barcode-scanner on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-firebase-ml-kit-barcode-scanner" on ios.
Beginning processing of action stack for ios project...
Adding non-custom framework to project... Foundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. Foundation.framework -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... AVFoundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. AVFoundation.framework -> {"customFramework":false,"link":true,"weak":false}
Action stack processing complete.
Failed to install 'cordova-plugin-firebase-ml-kit-barcode-scanner': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-firebase-ml-kit-barcode-scanner". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Discovered plugin "cordova-plugin-camera". Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-camera@4.0.3"
Copying plugin "/node_modules/cordova-plugin-camera" => "/plugins/cordova-plugin-camera"
Calling plugman.install on plugin "/plugins/cordova-plugin-camera" for platform "ios
Installing "cordova-plugin-camera" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-camera on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-camera" on ios.
....

We’ve added cordova-plugin-barcodescanner and phonegap-plugin-barcodescanner back into the Approved list. This does not mean they will work properly - but it seems some people are still managing to use them.

I have just tried to compile it with the cordova-plugin-barcodescanner but still gets an error.
Attached is my log file. I have just removed the sensitive information

VoltBuilder run started at 2021-03-24 07:00:45.374598
Plan: Indy
Preflight Check
UUID: f90aafc9-49c7-481e-bef9-9d2b461f59f4
TeamIdentifier: 5Q56T3HZT6
application-identifier: 5Q56T3HZT6.com.xxx.xxxx
adding android to xmlns
Output: Thanks for opting into telemetry to help us improve cordova.

Output: Creating a new cordova project.

Output: No version supplied. Retrieving version from config.xml...
Grabbing pinned version.
Using cordova-fetch for cordova-ios@^6.1.0
fetch: Installing cordova-ios@^6.1.0 to 
Running command: npm install cordova-ios@^6.1.0 --save-dev
Command finished with error code 0: npm install,cordova-ios@^6.1.0,--save-dev
Removing "cordova-" prefix from cordova-ios
Adding ios project...
Platform API successfully found in: /node_modules/cordova-ios
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.xxx.xxxx
	Name: Barcode Scanner
Copying iOS template project to /platforms/ios
iOS project created with cordova-ios@6.2.0
Platform API successfully found in: /platforms/ios/cordova/Api.js
Generating platform-specific config.xml from defaults for iOS at /platforms/ios/Barcode Scanner/config.xml
Merging project's config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
  copy  www/Login.html platforms/ios/www/Login.html (new file)
  copy  www/QS.woff platforms/ios/www/QS.woff (new file)
  mkdir platforms/ios/www/cordova-js-src
  copy  platforms/ios/platform_www/cordova-js-src/exec.js platforms/ios/www/cordova-js-src/exec.js (new file)
  copy  platforms/ios/platform_www/cordova-js-src/platform.js platforms/ios/www/cordova-js-src/platform.js (new file)
  mkdir platforms/ios/www/cordova-js-src/plugin
  mkdir platforms/ios/www/cordova-js-src/plugin/ios
  copy  platforms/ios/platform_www/cordova-js-src/plugin/ios/console.js platforms/ios/www/cordova-js-src/plugin/ios/console.js (new file)
......
......
Updating Storyboard image set contents.json
Updating Background Color color set Contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "before_prepare".
Checking for saved platforms that haven't been added to the project
Checking for saved plugins that haven't been added to the project
Plugin 'cordova-plugin-barcodescanner' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-inappbrowser' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-camera' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-file' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-media' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-geolocation' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-dialogs' found in config.xml... Migrating it to package.json
Discovered plugin "cordova-plugin-whitelist". Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-whitelist@^1.3.4"
Copying plugin "/node_modules/cordova-plugin-whitelist" => "/plugins/cordova-plugin-whitelist"
Calling plugman.install on plugin "/plugins/cordova-plugin-whitelist" for platform "ios
Installing "cordova-plugin-whitelist" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-whitelist on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-whitelist" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
pods.json: The file at /platforms/ios/pods.json does not exist.
Creating new pods.json in platforms/ios
Wrote to pods.json.
Podfile: The file at /platforms/ios/Podfile does not exist.
Creating new Podfile in platforms/ios
Wrote to Podfile.
Install complete for cordova-plugin-whitelist on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-whitelist on ios platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-whitelist to package.json
No scripts found for hook "after_plugin_add".
Discovered plugin "cordova-plugin-barcodescanner". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-barcodescanner, retrieving version from config.xml
No version for cordova-plugin-barcodescanner saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-barcodescanner to choose a compatible release
npm info for cordova-plugin-barcodescanner did not contain any engine info. Fetching latest release
Calling plugman.fetch on plugin "cordova-plugin-barcodescanner"
fetch: Installing cordova-plugin-barcodescanner to 
Running command: npm install cordova-plugin-barcodescanner --save-dev
Command finished with error code 0: npm install,cordova-plugin-barcodescanner,--save-dev
Copying plugin "/node_modules/cordova-plugin-barcodescanner" => "/plugins/cordova-plugin-barcodescanner"
Calling plugman.install on plugin "/plugins/cordova-plugin-barcodescanner" for platform "ios
Installing "cordova-plugin-barcodescanner" for ios
Dependencies detected, iterating through them...
Requesting plugin "cordova-plugin-compat@^1.0.0".
Plugin dependency "cordova-plugin-compat" not fetched, retrieving then installing.
fetch: Installing cordova-plugin-compat@^1.0.0 to 
Running command: npm install cordova-plugin-compat@^1.0.0 --save-dev
Command finished with error code 0: npm install,cordova-plugin-compat@^1.0.0,--save-dev
Copying plugin "/node_modules/cordova-plugin-compat" => "/plugins/cordova-plugin-compat"
Installing "cordova-plugin-compat" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-compat on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-compat" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
pods.json found in platforms/ios
Podfile found in platforms/ios
Install complete for cordova-plugin-compat on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-compat on ios platform only.
No scripts found for hook "after_plugin_install".
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-barcodescanner on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-barcodescanner" on ios.
Beginning processing of action stack for ios project...
Adding non-custom framework to project... libiconv.dylib -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. libiconv.dylib -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... AVFoundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. AVFoundation.framework -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... CoreVideo.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. CoreVideo.framework -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... QuartzCore.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. QuartzCore.framework -> {"customFramework":false,"link":true,"weak":false}
Action stack processing complete.
Failed to install 'cordova-plugin-barcodescanner': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-barcodescanner". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Discovered plugin "cordova-plugin-camera". Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-camera@4.0.3"
Copying plugin "/node_modules/cordova-plugin-camera" => "/plugins/cordova-plugin-camera"
Calling plugman.install on plugin "/plugins/cordova-plugin-camera" for platform "ios
Installing "cordova-plugin-camera" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-camera on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-camera" on ios.
Beginning processing of action stack for ios project...
Adding non-custom framework to project... ImageIO.framework -> {"customFramework":false,"embed":false,"link":true,"weak":true}
Non-custom framework added to project. ImageIO.framework -> {"customFramework":false,"link":true,"weak":true}
Adding non-custom framework to project... CoreLocation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. CoreLocation.framework -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... AVFoundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. AVFoundation.framework -> {"customFramework":false,"link":true,"weak":false}
Action stack processing complete.
Failed to install 'cordova-plugin-camera': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-camera". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Discovered plugin "cordova-plugin-device". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-device, retrieving version from config.xml
No version for cordova-plugin-device saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-device to choose a compatible release
Ignoring invalid version in cordova-plugin-device cordovaDependencies: 3.0.0 (must be a single version <= latest or an upper bound)
Ignoring cordova-plugin-device cordovaDependencies entry because it did not contain any valid plugin version entries
Calling plugman.fetch on plugin "cordova-plugin-device"
fetch: Installing cordova-plugin-device to 
Running command: npm install cordova-plugin-device --save-dev
Command finished with error code 0: npm install,cordova-plugin-device,--save-dev
Copying plugin "/node_modules/cordova-plugin-device" => "/plugins/cordova-plugin-device"
Calling plugman.install on plugin "/plugins/cordova-plugin-device" for platform "ios
Installing "cordova-plugin-device" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-device on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-device" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
Failed to install 'cordova-plugin-device': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-device". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Discovered plugin "cordova-plugin-geolocation". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-geolocation, retrieving version from config.xml
No version for cordova-plugin-geolocation saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-geolocation to choose a compatible release
Ignoring invalid version in cordova-plugin-geolocation cordovaDependencies: 5.0.0 (must be a single version <= latest or an upper bound)
Calling plugman.fetch on plugin "cordova-plugin-geolocation@4.1.0"
fetch: Installing cordova-plugin-geolocation@4.1.0 to 
Running command: npm install cordova-plugin-geolocation@4.1.0 --save-dev
Command finished with error code 0: npm install,cordova-plugin-geolocation@4.1.0,--save-dev
Copying plugin "/node_modules/cordova-plugin-geolocation" => "/plugins/cordova-plugin-geolocation"
Calling plugman.install on plugin "/plugins/cordova-plugin-geolocation" for platform "ios
Installing "cordova-plugin-geolocation" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-geolocation on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-geolocation" on ios.
Beginning processing of action stack for ios project...
Adding non-custom framework to project... CoreLocation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. CoreLocation.framework -> {"customFramework":false,"link":true,"weak":false}
Action stack processing complete.
Failed to install 'cordova-plugin-geolocation': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-geolocation". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Generating platform-specific config.xml from defaults for iOS at /platforms/ios/Barcode Scanner/config.xml
Merging project's config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
  copy  platforms/ios/platform_www/cordova_plugins.js platforms/ios/www/cordova_plugins.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-barcodescanner/www/barcodescanner.js platforms/ios/www/plugins/cordova-plugin-barcodescanner/www/barcodescanner.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-camera/www/Camera.js platforms/ios/www/plugins/cordova-plugin-camera/www/Camera.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-camera/www/CameraConstants.js platforms/ios/www/plugins/cordova-plugin-camera/www/CameraConstants.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js platforms/ios/www/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-camera/www/ios/CameraPopoverHandle.js platforms/ios/www/plugins/cordova-plugin-camera/www/ios/CameraPopoverHandle.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-device/www/device.js platforms/ios/www/plugins/cordova-plugin-device/www/device.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-geolocation/www/Coordinates.js platforms/ios/www/plugins/cordova-plugin-geolocation/www/Coordinates.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-geolocation/www/Position.js platforms/ios/www/plugins/cordova-plugin-geolocation/www/Position.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-geolocation/www/PositionError.js platforms/ios/www/plugins/cordova-plugin-geolocation/www/PositionError.js (updated file)
  copy  platforms/ios/platform_www/plugins/cordova-plugin-geolocation/www/geolocation.js platforms/ios/www/plugins/cordova-plugin-geolocation/www/geolocation.js (updated file)
Wrote out iOS Bundle Version "5.6.0" to /platforms/ios/Barcode Scanner/Barcode Scanner-Info.plist
Set TARGETED_DEVICE_FAMILY to "1,2".
iOS Product Name has not changed (still "Barcode Scanner")
Updating icons at platforms/ios/Barcode Scanner/Images.xcassets/AppIcon.appiconset/
Updating launch storyboard images at platforms/ios/Barcode Scanner/Images.xcassets/LaunchStoryboard.imageset/
Updating Storyboard image set contents.json
Updating Background Color color set Contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
Saving ios@6.2.0 into platforms.json
adding ios to cordova.platforms array in package.json

Failed to restore plugin "cordova-plugin-barcodescanner".
You might need to try adding it again.
Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Build 8c4e9639-4caa-4408-848f-b7f038f9f907 failed

I assume there is another reason for this error. If I remove the barcode plugin I get
"Failed to install ‘cordova-plugin-inappbrowser’: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios"0

and

“Failed to install ‘cordova-plugin-file’: Error: Does not appear to be an xcode project,”

I notice you have subsequent builds which ran cleanly. Did you find the problem?

It’s only the Android that’s working, the client is pushing me for final IOS and Android app, so I’m publishing the Android app so long.

The cordova-plugin-barcode-nativeios plugin you are using is a problem. It was last updated 5 years ago, and the GitHub repositories for it no longer exist. Just 5 people downloaded it last week.

Have you tried phonegap-plugins-barcodescanner? It was downloaded over 13,500 times.

Yes, I have tried the phonegap-plugins-barcodescanner
But as I said, there has to be something else, because if I remove the barcode scanner plugin, it give me an error on the cordova-plugin-inappbrowser plugin in the log file…

Here are all the plugins I’m currently using…
I don’t know if maybe any of the other plugins could cause this behaviour?

I have now reached “Maximum daily builds for my plan…” but still the same error!

The problem turned out to be something very simple: An invalid name for your project.

<name>.AST Recycling SA</name>

See the period before AST? That kills Xcode. (We’ll add a check to VoltBuilder for this)

Once that is fixed, there is another error:

fatal error: 'Cordova/CDVUIWebViewDelegate.h' file not found

This is because you’re using an old version of cordova-plugin-inappbrowser:

<plugin name="cordova-plugin-inappbrowser" spec="~1.7.0" />

Remove the spec="~1.7.0" and the current version (3.2.2) is used. InAppBrowser has seen many updates since 1.7. The most important is that it now uses WkWebView. The old version uses UiWebView, which is no longer allowed by Apple.

The project now builds successfully. You’ll need to test that it works correctly, of course.

To get more builds, either wait a day, or change your plan to Pro. You can change back later.

Great, thank you very much. Will you let me know when it is fixed that I can upgrade to do more builds?