我的 app-builder ant 任务是这样的:
<target name="build.app" depends="eval.dev.params, prepare.app, install.plugin.pay">
<exec executable="/usr/sbin/ipconfig" outputproperty="ip.addr" osfamily="mac">
<arg value="getifaddr"/>
<arg value="en0"/>
</exec>
<condition property="current.ip" value="${server.path}">
<not>
<equals arg1="${build.env}" arg2="dev"/>
</not>
</condition>
<condition property="current.ip" value="http://${ip.addr}:${server.port}">
<equals arg1="${build.env}" arg2="dev"/>
</condition>
<echo message="${current.ip}"/>
<app-builder applicationFolder="${build.path}/${context.root}"
nativeProjectPrefix="${context.root}" outputFolder="${build.path}"
worklightserverhost="${worklight.server.host}"/>
</target>
问题是,在这一步之后,我得到了两个 xcode 项目,而不是一个,然后 ios 构建失败了,我不知道如何检查“app-builder”的工作。
两个生成的 xcode 项目是这样命名的:
- /workspace/kWallet/build/myAppEnv/iphone/native/myAppMyAppIphone.xcodeproj
- /workspace/kWallet/build/myAppEnv/iphone/native/myAppEnvMyAppIphone.xcodeproj
最佳答案
你确定它们都是由 ant 构建的吗??? 通过查看名称格式,myAppMyAppIphone.xcodeproj 是由 ant 实用程序构建的,另一个 myAppEnvMyAppIphone.xcodeproj 是由 eclipse 构建的。
当您使用 eclipse 构建 ios 环境时,它使用以下格式
<project><app><env>.xcodeproj
Ant 使用格式的地方
<app><app><env>.xcodeproj
关于ios - IBM Worklight app-builder ant 任务创建两个 xcode 项目而不是一个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23959263/