6 Replies Latest reply on Jul 30, 2016 4:40 PM by benjamino96587917

    PGB is failing when installing plugins.

    chasv596525

      I have been able to build without any issues and then all of a sudden my builds started to fail. This particular time I got this error but if I remove that plugin it just errors on the next one which is contacts. The calendar plugin is third party but the contacts is not. I've also tried specifying the CLI version to 6.1.0 because 3 days ago with this same config file I was able to build with no problem, that did not work either. Thanks for the help!

       

      ** BUILD FAILED **

       

       

      The following build commands failed:

      CompileC build/Coordinate.build/Release-iphoneos/Coordinate.build/Objects-normal/armv7/Calendar.o Coordinate/Plugins/nl.x-services.plugins.calendar/Calendar.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

      (1 failure)

        • 1. Re: PGB is failing when installing plugins.
          kerrishotts Adobe Community Professional

          Ensure that you are not sourcing plugins from the PhoneGap Build repository. Use NPM instead. Note that you may need to determine the new plugin ID as they have changed from "org.apache.etc." to "cordova-plugin-etc."

           

          If that doesn't help, please share your config.xml file so we can see if there's anything obviously wrong (omit identifying information / secret keys you don't want the world to know about)

          • 2. Re: PGB is failing when installing plugins.
            chasv596525 Level 1

            kerrishotts I was unaware of the change from org.apache. Thank you, i will try that.

            • 3. Re: PGB is failing when installing plugins.
              chasv596525 Level 1

              So that didn't seem to help. Here's the config.xml

               

              ```

              <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.app.id" version="0.1.3">

                <name>Coordinate</name>

                <description></description>

                <author href="http://chasvales.com" email="me@chasvales.com">Team</author>

                <content src="index.html"/>

                <preference name="permissions" value="none"/>

                <preference name="orientation" value="portrait"/>

                <preference name="target-device" value="handset"/>

                <preference name="fullscreen" value="true"/>

                <preference name="webviewbounce" value="false"/>

                <preference name="prerendered-icon" value="true"/>

                <preference name="stay-in-webview" value="false"/>

                <preference name="ios-statusbarstyle" value="black-opaque"/>

                <preference name="exit-on-suspend" value="false"/>

                <preference name="show-splash-screen-spinner" value="true"/>

                <preference name="auto-hide-splash-screen" value="true"/>

                <preference name="disable-cursor" value="false"/>

                <preference name="StatusBarOverlaysWebView" value="true"/>

                <preference name="DisallowOverscroll" value="true" />

                <preference name="android-build-tool" value="gradle" />

                <plugin name="org.apache.cordova.console"/>

                <plugin name="org.apache.cordova.contacts"/>

                <plugin name="org.apache.cordova.device"/>

                <plugin name="org.apache.cordova.device-orientation"/>

                <plugin name="org.apache.cordova.dialogs"/>

                <plugin name="org.apache.cordova.globalization"/>

                <plugin name="org.apache.cordova.inappbrowser"/>

                <plugin name="org.apache.cordova.media"/>

                <plugin name="org.apache.cordova.network-information"/>

                <plugin name="org.apache.cordova.splashscreen"/>

                <plugin name="org.apache.cordova.vibration"/>

                <plugin name="org.apache.cordova.statusbar" />

                <plugin name="nl.x-services.plugins.calendar" />

                <plugin name="cordova-plugin-ionic-keyboard" source="npm" />

                <plugin name="cordova-plugin-facebook4" version="" source="npm">

                      <param name="APP_ID" value="XXXX" />

                      <param name="APP_NAME" value="XXX" />

                  </plugin>

                <plugin name="cordova-plugin-customurlscheme" source="npm">

                  <param name="URL_SCHEME" value="coordinate" />

                </plugin>

               

                <config-file platform="ios" parent="LSApplicationQueriesSchemes" overwrite="true">

                  <array>

                      <string>fbapi</string>

                      <string>fbapi20130214</string>

                      <string>fbapi20130410</string>

                      <string>fbapi20130702</string>

                      <string>fbapi20131010</string>

                      <string>fbapi20131219</string>

                      <string>fbapi20140410</string>

                      <string>fbapi20140116</string>

                      <string>fbapi20150313</string>

                      <string>fbapi20150629</string>

                      <string>fbauth</string>

                      <string>fbauth2</string>

                      <string>fb-messenger-api20140430</string>

                  </array>

              </config-file>

              <config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">

                <false/>

              </config-file>

                <!-- iPhone 6 / 6+ -->

              <icon src="res/ios/icon/icon-60@3x.png" platform="ios" width="180" height="180" />

              <!-- iPhone / iPod Touch  -->

              <icon src="res/ios/icon/icon-60.png" platform="ios" width="60" height="60" />

              <icon src="res/ios/icon/icon-60@2x.png" platform="ios" width="120" height="120" />

               

              <!-- Settings Icon -->

              <icon src="res/ios/icon/icon-small.png" platform="ios" width="29" height="29" />

              <icon src="res/ios/icon/icon-small@2x.png" platform="ios" width="58" height="58" />

               

              <!-- Spotlight Icon -->

              <icon src="res/ios/icon/icon-small.png" platform="ios" width="29" height="29" />

              <icon src="res/ios/icon/icon-small57.png" platform="ios" width="57" height="57" />

              <icon src="res/ios/icon/icon-40.png" platform="ios" width="40" height="40" />

              <icon src="res/ios/icon/icon-40@2x.png" platform="ios" width="80" height="80" />

               

                <!-- SPLASH SCREEN -->

               

               

              <!-- iPhone and iPod touch -->

              <splash src="res/ios/splash/Default@2x.png" platform="ios" width="640" height="960" />

               

               

              <!-- iPhone 5 / iPod Touch (5th Generation) -->

              <splash src="res/ios/splash/Default-568h@2x.png" platform="ios" width="640" height="1136" />

               

               

              <!-- iPhone 6 -->

              <splash src="res/ios/splash/Default-667h@2x.png" platform="ios" width="750" height="1334" />

              <splash src="res/ios/splash/Default-Portrait-736h@3x.png" platform="ios" width="1242" height="2208" />

               

                <access origin="*"/>

                <access origin="*.pushwoosh.com"/>

                <plugin name="cordova-plugin-whitelist" version="1"/>

                <allow-intent href="http://*/*"/>

                <allow-intent href="https://*/*"/>

                <allow-intent href="tel:*"/>

                <allow-intent href="sms:*"/>

                <allow-intent href="mailto:*"/>

                <allow-intent href="geo:*"/>

                <platform name="android">

                  <allow-intent href="market:*"/>

                </platform>

                <platform name="ios">

                  <allow-intent href="itms:*"/>

                  <allow-intent href="itms-apps:*"/>

                </platform>

              </widget>```

              • 4. Re: PGB is failing when installing plugins.
                kerrishotts Adobe Community Professional

                You have:

                 

                <plugin name="org.apache.cordova.console"/>

                  <plugin name="org.apache.cordova.contacts"/>

                  <plugin name="org.apache.cordova.device"/>

                  <plugin name="org.apache.cordova.device-orientation"/>

                  <plugin name="org.apache.cordova.dialogs"/>

                  <plugin name="org.apache.cordova.globalization"/>

                  <plugin name="org.apache.cordova.inappbrowser"/>

                  <plugin name="org.apache.cordova.media"/>

                  <plugin name="org.apache.cordova.network-information"/>

                  <plugin name="org.apache.cordova.splashscreen"/>

                  <plugin name="org.apache.cordova.vibration"/>

                  <plugin name="org.apache.cordova.statusbar" />

                 

                 

                These are old-style plugin IDs. You should use:

                 

                <plugin name="cordova-plugin-console" />

                <plugin name="cordova-plugin-contacts" />

                etc.

                 

                Furthermore, I would be explicit about your source (source="npm") and the version of the plugin you want (spec="x.y.z"). That way you won't be surprised in the future when a plugin is updated to a newer version and your code decides to break. Instead you can change version #s when your code is ready to handle the newer plugin.

                 

                Also:

                 

                  <plugin name="nl.x-services.plugins.calendar" />

                 

                I don't know which plugin this refers to, but it's definitely third-party. The dev may have a newer version out on NPM, but I don't know what the plugin ID would be. It's also possible the third-party plugin may not support the newer version of PGB. Remove it from your config.xml and see if you can get a successful build. If so, contact the third-party developer and let them know it needs to be updated.

                • 5. Re: PGB is failing when installing plugins.
                  chasv596525 Level 1

                  I'll switch them to NPM is there a page that has the npm references? The phonegap plugins page does not. Just want to make sure I have the correct names and versions. I have fixed the bigger issue which was it not compiling. It compiles on the build server now. I updated the facebook plugin and ionic keyboard to npm. Thanks for your help!