How to open .xcodeproj programmatically?

你离开我真会死。 提交于 2020-01-22 10:33:09

问题


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

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
}

Help

Thanks in Advance.


回答1:


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

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



来源:https://stackoverflow.com/questions/24820384/how-to-open-xcodeproj-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!