如何以编程方式打开.xcodeproj? [英] How to open .xcodeproj programmatically?

查看:207
本文介绍了如何以编程方式打开.xcodeproj?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有项目名为A.xcodeproj,B.xcodeproj,C.xcodeproj

I have projects called A.xcodeproj, B.xcodeproj, C.xcodeproj

现在问题是什么,在项目A的AppDelegate中打开项目B和C on条件。

now what is question, in AppDelegate of Project A , open project B and C on condition.

int run;

run = 0;

if(run == 0)
{
    Open project B.xcodeproj
}
else
{
    Open project C.xcodeproj
}

帮助

先谢谢。

推荐答案

在命令行中使用打开打开并显示xcode ..
所以在你的情况下,当运行== 0

on the command line use open to OPEN and SHOW xcode..
so in your case, when run == 0

当你想构建xcode项目时,调用 xcodebuild 而不是打开!..所以在你的情况下,当运行== 1

when you want to BUILD the xcode project, invoke xcodebuild instead of open!..
so in your case, when run == 1

这篇关于如何以编程方式打开.xcodeproj?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆