6 Replies Latest reply on Sep 16, 2016 5:39 AM by VectorP

    multi build

    likusoft Level 1

      Hi

       

      I have a question.
      When I launch the build of my app cordova in cloud .. Android and ios I need to launch the command first
      <Add platform ios >
      <Add platform Android >

      After loading the single zip file


      Or I have to create two separate zip (then separate command add platform).. one for Android and one for ios ?

      thank you

        • 1. Re: multi build
          VectorP Level 4

          If you build in the cloud (using Phonegap Build) there is no such thing as "add platform" command.

          PGB only wants your assets and a config.xml file. Nothing else, specifically no directories like /platforms, /plugins, /hooks.

           

          Once you have your assets and config prepared, zip them up and upload to PGB....only once. PGB will generate the installable apps for you in the specified flavours.

          See the Getting Started section of the Phonegap Build documentation.

          • 2. Re: multi build
            likusoft Level 1

            Thanks Vector..

             

            Then the command   <add platform andorid/ios>

             

            It needed only if you want to import the project on a particular platform ..

            for example
            Android Studio -->  Andorid
            Xcode  ----->  ios

            it's correct

            • 3. Re: multi build
              likusoft Level 1

              this statement is correct ???

               

              ---------------------------------------------

               

              Then the command   <add platform andorid/ios>

               

              It needed only if you want to import the project on a particular platform ..

              for example
              Android Studio -->  Andorid
              Xcode  ----->  ios

              it's correct ???

               

              thanks

              • 4. Re: multi build
                VectorP Level 4

                No. You wrote 'Andorid' twice, so I must assume it's not a typo.

                Also, if you are using PGB, it is useless to 'add platform' or 'create project', because none of the generated directories (like /platforms, /hooks, /plugins) will eventually be in your PGB zip file, anyway.

                • 5. Re: multi build
                  likusoft Level 1

                  Andorid  -----> Is a  wrong copy and paste :-)  ---   I mean Android

                   

                  Then..

                   

                  if I don't use it pgb but the platforms native development as ios or android .. to import the project on specific IDE I have to launch the cordoba add command platform < android or ios >

                  it's correct ??

                  • 6. Re: multi build
                    VectorP Level 4

                    Yes.

                    See the Phonegap Docs

                    Step 1: Install PhoneGap | PhoneGap Docs