letsdev / maven-ios-plugin

The maven-ios-plugin plugs in to the Maven build lifecycle to automate compilation and deployment of iOS applications. This enables continuous integration for the iOS platform with ease. This is a plugin provided by let's dev GmbH & Co.KG
http://www.letsdev.de
19 stars 6 forks source link

Support for building both Release and Debug flavors at the same time #15

Open yuriy128 opened 8 years ago

yuriy128 commented 8 years ago

Is this supported?

fabiankoebel commented 8 years ago

Hi, yes, you can achieve this with two executions by specifying the configuration parameter:

  <execution>
    <id>ldRelease</id>
    <goals>
      <goal>build</goal>
      <goal>package</goal>
      <goal>deploy</goal>
    </goals>
    <configuration>
      <configuration>Release</configuration>
      ...
    </configuration>
  </execution>
  <execution>
    <id>ldDebug</id>
    <goals>
      <goal>build</goal>
      <goal>package</goal>
      <goal>deploy</goal>
    </goals>
    <configuration>
      <configuration>Debug</configuration>
      ...
    </configuration>
  </execution>
</executions>
yuriy128 commented 8 years ago

Here's what i'm trying:

<plugin>
              <groupId>de.letsdev.maven.plugins</groupId>
              <artifactId>maven-ios-plugin</artifactId>
              <extensions>true</extensions>
              <executions>
                  <execution>
                      <id>ldRelease</id>
                      <goals>
                          <goal>build</goal>
                          <goal>package</goal>
                          <goal>deploy</goal>
                      </goals>
                      <configuration>
                          <appName>SQLite</appName>
                          <buildXCArchiveEnabled>false</buildXCArchiveEnabled>
                          <configuration>Release</configuration>
                          <iOSFrameworkBuild>true</iOSFrameworkBuild>
                          <iphoneosArchitectures>arm64 armv7</iphoneosArchitectures>
                          <iphonesimulatorArchitectures>i386 x86_64</iphonesimulatorArchitectures>
                      </configuration>
                  </execution>
                  <execution>
                      <id>ldDebug</id>
                      <goals>
                          <goal>build</goal>
                          <goal>package</goal>
                          <goal>deploy</goal>
                      </goals>
                      <configuration>
                          <appName>SQLite</appName>
                          <buildXCArchiveEnabled>false</buildXCArchiveEnabled>
                          <configuration>Debug</configuration>
                          <iOSFrameworkBuild>true</iOSFrameworkBuild>
                          <iphoneosArchitectures>arm64 armv7</iphoneosArchitectures>
                          <iphonesimulatorArchitectures>i386 x86_64</iphonesimulatorArchitectures>
                      </configuration>
                  </execution>
              </executions>
          </plugin>

Getting an error as follows:

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.435 s [INFO] Finished at: 2016-06-10T11:22:19-04:00 [INFO] Final Memory: 9M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.letsdev.maven.plugins:maven-ios-plugin:1.15.9:build (default-build) on project SQLite: The parameters 'appName' for goal de.letsdev.maven.plugins:maven-ios-plugin:1.15.9:build are missing or invalid -> [Help 1]