Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/117.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios &引用;无法生成plist文件'/文件/path/to/plist';“可写”;Xcode Maven生成的错误消息_Ios_Xcode_Maven Plugin_Pom.xml_Auto Build - Fatal编程技术网

Ios &引用;无法生成plist文件'/文件/path/to/plist';“可写”;Xcode Maven生成的错误消息

Ios &引用;无法生成plist文件'/文件/path/to/plist';“可写”;Xcode Maven生成的错误消息,ios,xcode,maven-plugin,pom.xml,auto-build,Ios,Xcode,Maven Plugin,Pom.xml,Auto Build,我正在尝试创建一个Maven项目,以便(通过使用)构建Xcode应用程序。这是我的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

我正在尝试创建一个Maven项目,以便(通过使用)构建Xcode应用程序。这是我的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> 

我终于解决了这个问题。在我的项目名称中,我有空格字符,这导致了这个问题。我重新创建了我的iOS应用程序,它的名称中没有任何空格,它的工作方式很有魅力

[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