我正在尝试创建一个Maven项目以构建Xcode应用程序(使用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
答案 0 :(得分:1)
我终于找到了问题所在。在我的项目名称中,我有空格字符,这会导致此问题。我重新创建了我的iOS应用程序,其名称没有任何空间,它就像一个魅力。