我有一个 Cocoa 项目,我想用 Maven 构建它。是否有用于构建 objective-c 代码的 Maven 插件?
最佳答案
我已经使用 exec 插件运行命令行 cocoa,效果很好。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>${cocoa.phase}</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>xcodebuild</executable>
<workingDirectory>${project.build.directory}/</workingDirectory>
</configuration>
</plugin>
关于objective-c - 使用 Maven 构建 Cocoa 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1899021/