6 Replies Latest reply on Sep 18, 2016 12:10 AM by VectorP

    IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization

    naushads19572008 Level 1

      I am new to phone gap . I am trying to build and upload my phonegap project . I am struck with the following error while building . Please help me

       

      It says

       

      Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization

       

      Some Error  information from the log

       

      /project/XXX/Plugins/org.apache.cordova.globalization/CDVGlobalization.m -o /project/build/XXX.build/Release-iphoneos/XXX.build/Objects-normal/armv7/CDVGlobalization .o

      /project/XXX/Plugins/org.apache.cordova.globalization/CDVGlobalization.m:26:38: error: no visible @interface for 'CDVPlugin' declares the selector 'initWithWebView:'

        self = (CDVGlobalization*)[super initWithWebView:theWebView];

       

      The following build commands failed:

      CompileC build/XXX.build/Release-iphoneos/XXX.build/Objects-normal/armv7/CDVGlobalization.o XXX/Plugins/org.apache.cordova.globalization/CDVGlobalization.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

       

      My config.xml

       

      <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"

        id="com.XXX.classnet" version="1.0.2" ios-CFBundleIdentifier="com.XXX.classnet">

        <name>XXXEducation</name>

        <description>Share live feed of students daily classroom activities,

        homeworks, behaviour and all stuff that matters to you with parents.

        </description>

        <author href="https://www.companyname.com" email="support@companyname.com">XXXEducation PTE LTD

        </author>

        <content src="index.html" />

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

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

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

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

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

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

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

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

        <preference name="detect-data-types" value="true" />

        <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" />

       

       

        <plugin name="org.apache.cordova.battery-status" source="pgb"

        spec="0.2.12" />

        <plugin name="org.apache.cordova.camera" source="pgb" spec="0.3.6" />

        <plugin name="org.apache.cordova.console" source="pgb" spec="0.2.13" />

        <plugin name="org.apache.cordova.contacts" source="pgb" spec="0.2.16" />

        <plugin name="org.apache.cordova.device" source="pgb" spec="0.3.0" />

        <plugin name="org.apache.cordova.device-motion" source="pgb"

        spec="0.2.11" />

        <plugin name="org.apache.cordova.device-orientation" source="pgb"

        spec="0.3.11" />

        <plugin name="org.apache.cordova.dialogs" source="pgb" spec="0.3.0" />

        <plugin name="org.apache.cordova.file" source="pgb" spec="1.3.3" />

        <plugin name="org.apache.cordova.file-transfer" source="pgb"

        spec="0.5.0" />

        <plugin name="org.apache.cordova.geolocation" source="pgb" spec="0.3.12" />

        <plugin name="org.apache.cordova.globalization" source="pgb"

        spec="0.3.4" />

        <plugin name="org.apache.cordova.inappbrowser" source="pgb"

        spec="0.6.0" />

        <plugin name="org.apache.cordova.media" source="pgb" spec="0.2.16" />

        <plugin name="org.apache.cordova.media-capture" source="pgb"

        spec="0.3.6" />

        <plugin name="org.apache.cordova.network-information" source="pgb"

        spec="0.2.15" />

        <plugin name="org.apache.cordova.splashscreen" source="pgb"

        spec="1.0.0" />

        <plugin name="org.apache.cordova.vibration" source="pgb" spec="0.3.13" />

        <icon src="icon.png" gap:platform="ios" />

      <icon src="www/res/icon/blackberry/icon-80.png" gap:platform="blackberry" />

        <icon src="www/res/icon/blackberry/icon-80.png" gap:platform="blackberry"

        gap:state="hover" />

        <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />

        <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />

        <icon src="icon-57-2x.png" gap:platform="ios" width="114" height="114" />

        <icon src="icon-72-2x.png" gap:platform="ios" width="144" height="144" />

        <icon src="www/res/icon/webos/icon-64.png" gap:platform="webos" />

        <icon src="www/res/icon/windows-phone/icon-48.png" gap:platform="winphone" />

        <icon src="www/res/icon/windows-phone/icon-173-tile.png"

        gap:platform="winphone" gap:role="background" />

       

       

        <gap:splash src="www/res/screen/blackberry/screen-225.png"

        gap:platform="blackberry" />

        <gap:splash src="screen-iphone-portrait.png" gap:platform="ios"

        width="320" height="480" />

        <gap:splash src="screen-iphone-portrait-2x.png"

        gap:platform="ios" width="640" height="960" />

        <gap:splash src="screen-iphone-portrait-568h.png"

        gap:platform="ios" width="640" height="568" />

        <gap:splash src="screen-iphone-portrait-568h-2x.png"

        gap:platform="ios" width="640" height="1136" />

        <gap:splash src="screen-ipad-portrait.png" gap:platform="ios"

        width="768" height="1024" />

        <gap:splash src="screen-ipad-landscape.png" gap:platform="ios"

        width="1024" height="768" />

        <gap:splash src="www/res/screen/windows-phone/screen-portrait.jpg"

        gap:platform="winphone" />

        <access origin="*" />

        <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:*" />

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

        <feature name="Geolocation">

        <param name="ios-package" value="CDVLocation" />

        </feature>

        <platform name="ios">

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

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

        </platform>

        <access origin="*" subdomains="true" />

      </widget>

        • 1. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
          ShazronAbdullah Adobe Employee

          You've specified the globalization plugin as version 0.3.4 here, which is not compatible with cordova-ios 4.x, which is used by PGB by default. Upgrade the plugin to a newer version, at least 1.x. The latest globalization plugin version is 1.0.4.

          • 2. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
            naushads19572008 Level 1

            Hi, Thanks for reply I have done that still same error

             

            Here is my updated config.xml

             

            <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"

              id="com.xxx.classnet" version="1.0.0" ios-CFBundleIdentifier="com.xxx.classnet">

              <name>xxxEducation</name>

              <description>Share live feed of students daily classroom activities,

              homeworks, behaviour and all stuff that matters to you with parents.

              </description>

              <author href="https://www.company.com" email="support@company.com">companyEducation PTE LTD

              </author>

              <content src="index.html" />

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

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

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

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

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

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

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

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

              <preference name="detect-data-types" value="true" />

              <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" />

             

             

                <plugin name="cordova-plugin-battery-status" />

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

                <plugin name="cordova-plugin-media-capture" />

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

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

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

                <plugin name="cordova-plugin-device-motion" />

                <plugin name="cordova-plugin-device-orientation" />

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

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

                <plugin name="cordova-plugin-file-transfer" />

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

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

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

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

                <plugin name="cordova-plugin-network-information" />

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

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

             

             

             

             

              <icon src="icon.png" gap:platform="ios" />

             

             

              <icon src="www/res/icon/blackberry/icon-80.png" gap:platform="blackberry" />

              <icon src="www/res/icon/blackberry/icon-80.png" gap:platform="blackberry"

              gap:state="hover" />

              <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />

              <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />

              <icon src="icon-57-2x.png" gap:platform="ios" width="114" height="114" />

              <icon src="icon-72-2x.png" gap:platform="ios" width="144" height="144" />

              <icon src="www/res/icon/webos/icon-64.png" gap:platform="webos" />

              <icon src="www/res/icon/windows-phone/icon-48.png" gap:platform="winphone" />

              <icon src="www/res/icon/windows-phone/icon-173-tile.png"

              gap:platform="winphone" gap:role="background" />

             

             

              <gap:splash src="www/res/screen/blackberry/screen-225.png"

              gap:platform="blackberry" />

              <gap:splash src="screen-iphone-portrait.png" gap:platform="ios"

              width="320" height="480" />

              <gap:splash src="screen-iphone-portrait-2x.png"

              gap:platform="ios" width="640" height="960" />

              <gap:splash src="screen-iphone-portrait-568h.png"

              gap:platform="ios" width="640" height="568" />

              <gap:splash src="screen-iphone-portrait-568h-2x.png"

              gap:platform="ios" width="640" height="1136" />

              <gap:splash src="screen-ipad-portrait.png" gap:platform="ios"

              width="768" height="1024" />

              <gap:splash src="screen-ipad-landscape.png" gap:platform="ios"

              width="1024" height="768" />

              <gap:splash src="www/res/screen/windows-phone/screen-portrait.jpg"

              gap:platform="winphone" />

              <access origin="*" />

              <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:*" />

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

              <feature name="Geolocation">

              <param name="ios-package" value="CDVLocation" />

              </feature>

              <platform name="ios">

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

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

              </platform>

              <access origin="*" subdomains="true" />

            </widget>

            • 3. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
              naushads19572008 Level 1

              I have checked the log, Still 0.3.4 is being installed although i changed the version

               

              Installing "org.apache.cordova.file" at "1.3.3" for ios

              Installing "org.apache.cordova.globalization" at "0.3.4" for ios

              • 4. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
                VectorP Level 4

                Since you specify paths for icons/splashes starting with "www/", I assume that your directory structure is wrong, and that your config is not found, read and/or parsed. Another indication for this is that PGB reports old plugin names, although you now specified the correct latest versions of the plugins from npm.

                 

                Can you confirm that you have both index.html and config.xml in the root directory ("/") of your zip file for PGB, and that this is the only index.html in your complete assets set?

                 

                Also, you should remove the feature element from config, as this element is obsolete.

                • 5. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
                  naushads19572008 Level 1

                  My index.html is in www folder , It is auto generated there from Phonegap Desktop. Why PGB is taking the older versions ? How to update the versions in this case? Thanks a lot for your reply

                  • 6. Re: IOS Error - The following core plugin is causing the build to fail and may need to be updated to a newer version: globalization
                    VectorP Level 4

                    This is  frequently occurring confusion.

                    The Phonegap Desktop App is intended to be used with CLI, not Phonegap Build. PGB expects different things from you:

                    - config and index must be in the root of your zip

                    - no other index.html files should be in your package.

                    - there is no requirement for certain directory names (like /www). You can name them as you want, or not include any at all.

                    - you should never upload a full  Cordova project (with /hooks, /platforms and /plugins)

                     

                    This would be a good time to read the Getting Started section of the PGB docs, then read on and apply from there.

                    Getting Started | PhoneGap Docs

                    1 person found this helpful