1

Xcode アプリをビルドするために Maven プロジェクトを作成しようとしています ( Xcode Maven Pluginを使用して)。ここに私のpom.xmlファイルがあります:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>my.package</groupId>
  <artifactId>MyAppName</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>xcode-app</packaging>

  <build>
    <plugins>
          <plugin>
             <groupId>com.sap.prd.mobile.ios.mios</groupId>
             <artifactId>xcode-maven-plugin</artifactId>
              <version>1.14.0</version>
             <extensions>true</extensions>
             <executions>
                <execution>
                   <id>package-xcode-project</id>
                   <phase>package</phase>
                   <goals>
                      <goal>package-xcodeproj</goal>
                   </goals>
                </execution>
             </executions>  
          </plugin>
    </plugins>
  </build>
</project> 

mvn clean install を試みると、次のエラーが表示されます。

[ERROR] Failed to execute goal com.sap.prd.mobile.ios.mios:xcode-maven-plugin:1.14.0:change-versions-in-plist (default-change-versions-in-plist) on project MyAppName: Could not make plist file '/file/path/to/plist/MyAppName-Info.plist' writable. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
4

1 に答える 1

1

私はついに問題を理解しました。プロジェクト名にスペース文字が含まれていたため、この問題が発生しました。名前にスペースを入れずに iOS アプリケーションを再作成したところ、魅力的に動作しました。

于 2014-04-14T19:02:46.813 に答える