【发布时间】:2014-05-30 16:27:55
【问题描述】:
我的 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>
问题是,在这一步之后,我得到了两个 xcodeprojects 而不是一个,然后 ios 构建失败,我不知道如何检查“app-builder”的工作。
生成的两个 xcode 项目以这种方式命名:
- /workspace/kWallet/build/myAppEnv/iphone/native/myAppMyAppIphone.xcodeproj
- /workspace/kWallet/build/myAppEnv/iphone/native/myAppEnvMyAppIphone.xcodeproj
【问题讨论】:
-
app-builder 部分的结构很奇特。您是否可以按照 ant-builder 的 Worklight 用户文档尝试新的 ant 任务,如果它正常工作,然后添加其余条件?在此处查看用户文档:www-01.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/…
标签: ios xcode ant ibm-mobilefirst