简体   繁体   English

IBM Worklight应用程序构建器ant任务创建两个xcode项目而不是一个

[英]IBM Worklight app-builder ant task creates two xcode projects instead of one

my app-builder ant task is like that: 我的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>

The problem is that after this step I get two xcodeprojects instead of one and the ios build then fails and I don't know how to inspect "app-builder" work. 问题是,在这一步之后,我得到两个xcodeprojects而不是一个,然后ios构建失败,我不知道如何检查“app-builder”工作。

The two resulting xcode projects are named this way: 产生的两个xcode项目以这种方式命名:

  • /workspace/kWallet/build/myAppEnv/iphone/native/myAppMyAppIphone.xcodeproj /workspace/kWallet/build/myAppEnv/iphone/native/myAppMyAppIphone.xcodeproj
  • /workspace/kWallet/build/myAppEnv/iphone/native/myAppEnvMyAppIphone.xcodeproj /workspace/kWallet/build/myAppEnv/iphone/native/myAppEnvMyAppIphone.xcodeproj

Are you sure that they both are being build by ant??? 你确定它们都是由蚂蚁构建的??? The myAppMyAppIphone.xcodeproj, by looking at name format, is the one built by the ant utility and the other myAppEnvMyAppIphone.xcodeproj was built by eclipse. 通过查看名称格式,myAppMyAppIphone.xcodeproj是由ant实用程序构建的,另一个是由eclipse构建的myAppEnvMyAppIphone.xcodeproj。

When you use eclipse to build the ios env it uses the format 当你使用eclipse构建ios env时,它会使用这种格式

<project><app><env>.xcodeproj  

where as ant uses the format 蚂蚁使用格式的地方

<app><app><env>.xcodeproj
<app-builder applicationFolder="${build.path}/${context.root}"
                 nativeProjectPrefix="${context.root}" outputFolder="${build.path}"
                 worklightserverhost="${worklight.server.host}"/>

If you provide the nativeProjectPrefix to be the projectname then we get the xcode file name as same. 如果您提供的nativeProjectPrefixprojectname ,然后我们得到了Xcode的文件名相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM