6 Replies Latest reply on Mar 5, 2017 1:17 PM by bobisum

    iOS build doesn't show installed plugins.

    bobisum

      Building the app for android works and the platform shows installed plugins. When I build for iOS no plugins are installed and the app crashes when I try to use plugin functionality.

       

      Can someone help? Is this issue with build or might I be missing something?

        • 1. Re: iOS build doesn't show installed plugins.
          kerrishotts Adobe Community Professional

          Please share your config.xml (minus identifying/secret information).

          • 2. Re: iOS build doesn't show installed plugins.
            bobisum Level 1

            Here it is:

             

            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
            <widget xmlns  = "http://www.w3.org/ns/widgets"
               xmlns:gap  = "http://phonegap.com/ns/1.0"
               id  = ""
               versionCode = "635"
               version  = "1.3.0" >

              <content src="index.html"/>

              <plugin name="cordova-plugin-whitelist" source="npm" spec="1.3.0" />
              <allow-navigation href="*" />
              <allow-intent href="*" />
              <access origin="*" />

              <preference name="webviewbounce" value="false" />
              <preference name="UIWebViewBounce" value="false" />
              <preference name="DisallowOverscroll" value="true" />
              <preference name="android-minSdkVersion" value="16" />
              <preference name="BackupWebStorage" value="none" />
              <preference name="target-device" value="handset" />

              <plugin name="ionic-plugin-keyboard" spec="2.2.1" source="npm" />
              <plugin name="cordova-plugin-camera" source="npm" spec="2.1.1" />
              <plugin name="cordova-plugin-file" source="npm" spec="4.3.0"/>
              <plugin name="cordova-plugin-statusbar" spec="2.1.0" source="npm" />
              <plugin spec="https://github.com/apache/cordova-plugin-inappbrowser.git#1.4.0" source="git" />
              <plugin name="cordova-plugin-email-composer" source="npm" spec="0.8.3" />
              <plugin name="cordova-plugin-fileopener" source="npm" spec="1.0.5" />
              <plugin spec="https://github.com/katzer/cordova-plugin-local-notifications.git#0.8.4" source="git" />

              <gap:platform name="ios"/>
              <gap:platform name="android"/>
              <preference name="orientation" value="portrait" />

              <gap:config-file platform="ios" parent="UISupportedInterfaceOrientations" overwrite="true">
              <array>
              <string>UIInterfaceOrientationLandscapeOmg</string>
              </array>
              </gap:config-file>

              <gap:config-file platform="ios" parent="CFBundleLocalizations" mode="replace">
              <array>
              <string>de</string>
              </array>
              </gap:config-file>

              <feature name="StatusBar">
              <param name="ios-package" value="CDVStatusBar" onload="true"/>
              </feature>

              <!-- Icons -->
              <icon src="resources/android/icon/36.png" gap:platform="android" gap:qualifier="ldpi" />
              <icon src="resources/android/icon/48.png" gap:platform="android" gap:qualifier="mdpi" />
              <icon src="resources/android/icon/Icon-72.png" gap:platform="android" gap:qualifier="hdpi" />
              <icon src="resources/android/icon/96.png" gap:platform="android" gap:qualifier="xhdpi" />
              <icon src="resources/android/icon/Icon-72@2x.png" gap:platform="android" gap:qualifier="xxhdpi" />
              <icon src="resources/android/icon/192.png" gap:platform="android" gap:qualifier="xxxhdpi" />

              <gap:splash src="resources/android/splash/200x320.png" gap:platform="android" gap:qualifier="ldpi" />
              <gap:splash src="resources/android/splash/320x480.png" gap:platform="android" gap:qualifier="mdpi" />
              <gap:splash src="resources/android/splash/480x800.png" gap:platform="android" gap:qualifier="hdpi" />
              <gap:splash src="resources/android/splash/720x1280.png" gap:platform="android" gap:qualifier="xhdpi" />
              <gap:splash src="resources/android/splash/1080x1920.png" gap:platform="android" gap:qualifier="xxhdpi" />
              <gap:splash src="resources/android/splash/1280x1920.png" gap:platform="android" gap:qualifier="xxxhdpi" />


              <icon src="resources/ios/icon/Icon.png" gap:platform="ios" width="57" height="57" />
              <icon src="resources/ios/icon/Icon-72.png" gap:platform="ios" width="72" height="72" />
              <!-- iPhone 6 / 6+ -->
              <icon src="resources/ios/icon/Icon-60@3x.png" gap:platform="ios" width="180" height="180" />
              <!-- iPhone / iPod Touch -->
              <icon src="resources/ios/icon/Icon-60.png" gap:platform="ios" width="60" height="60" />
              <icon src="resources/ios/icon/Icon-Small-40@3x.png" gap:platform="ios" width="120" height="120" />
              <!-- iPad -->
              <icon src="resources/ios/icon/Icon-76.png" gap:platform="ios" width="76" height="76" />
              <icon src="resources/ios/icon/Icon-76@2x.png" gap:platform="ios" width="152" height="152" />
              <!-- Settings Icon -->
              <icon src="resources/ios/icon/Icon-Small.png" gap:platform="ios" width="29" height="29" />
              <icon src="resources/ios/icon/Icon-Small@2x.png" gap:platform="ios" width="58" height="58" />
              <!-- Spotlight Icon -->
              <icon src="resources/ios/icon/Icon-Small-40.png" gap:platform="ios" width="40" height="40" />
              <icon src="resources/ios/icon/Icon-Small-40@2x.png" gap:platform="ios" width="80" height="80" />

              <!-- BIG ICONS -->
              <icon src="resources/ios/icon/512.png" gap:platform="ios" width="512" height="512" />
              <icon src="resources/ios/icon/iTunesArtwork@2x.png" gap:platform="ios" width="1024" height="1024" />
              <!-- iPhone and iPod touch -->

              <gap:splash src="resources/ios/splash/320x480.png" gap:platform="ios" width="320" height="480" />
              <gap:splash src="resources/ios/splash/640x960.png" gap:platform="ios" width="640" height="960" />
              <!-- iPhone 5 / iPod Touch (5th Generation) -->
              <gap:splash src="resources/ios/splash/640x1136.png" gap:platform="ios" width="640" height="1136" />
              <!-- iPhone 6 -->
              <gap:splash src="resources/ios/splash/750x1334.png" gap:platform="ios" width="750" height="1334" />
              <gap:splash src="resources/ios/splash/1242x2208.png" gap:platform="ios" width="1242" height="2208" />
              <gap:splash src="resources/ios/splash/2208x1242.png" gap:platform="ios" width="2208" height="1242" />
              <!-- iPad -->
              <gap:splash src="resources/ios/splash/1024x768.png" gap:platform="ios" width="1024" height="768"/>
              <gap:splash src="resources/ios/splash/768x1024.png" gap:platform="ios" width="768" height="1024" />
              <!-- Retina iPad -->
              <gap:splash src="resources/ios/splash/1536x2048.png" gap:platform="ios" width="1536" height="2048" />
              <gap:splash src="resources/ios/splash/2048x1536.png" gap:platform="ios" width="2048" height="1536" />

            </widget>

            • 3. Re: iOS build doesn't show installed plugins.
              kerrishotts Adobe Community Professional

              Try removing the <feature> tag -- that isn't valid in your project's root config.xml. I don't imagine that being the problem, but worth a shot.

               

              Which plugin functionality, specifically, are you trying to use?

              • 4. Re: iOS build doesn't show installed plugins.
                bobisum Level 1

                Hi again,

                 

                removing the feature tag didn't help. Let me share screens on what I think the issue is - here is a screenshot of the plugins after iOS build:
                Screen Shot 2017-03-04 at 8.10.33 PM.png

                 

                and here is a screenshot after the android build:

                Screen Shot 2017-03-04 at 8.11.09 PM.png

                 

                So for some reason the build for iOS isn't working.

                 

                And to answer your question - the plugin is the cordova-plugin-camera. Note that on android all plugins work. On iOS after triggering the camera the app crashes.

                 

                Any ideas would be welcome

                • 5. Re: iOS build doesn't show installed plugins.
                  kerrishotts Adobe Community Professional

                  Some plugins require explanations for the permissions they'll request. The camera plugin is one of those. See Camera - Apache Cordova for more info. You'll need to include those in your "config.xml" -- see Plugins | PhoneGap Docs .

                  • 6. Re: iOS build doesn't show installed plugins.
                    bobisum Level 1

                    Thanks for the info and this is something that needs adding for the build to pass the app store check, but has nothing to do with the issue that I'm currently facing - the build for iOS in build.phonegap doesn't show installed plugins and they just don't work.