从命令行创建新的 xcode 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14118262/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:26:34  来源:igfitidea点击:

Create new xcode project from command line

xcodeterminal

提问by iPhone Developer

I want to create iPhone application with native apple frameworks. But I want to create it from command line. Please help. Thanks

我想用原生苹果框架创建 iPhone 应用程序。但我想从命令行创建它。请帮忙。谢谢

回答by moljac

pod lib create ProjectName

This will create XCode project library, sample and UnitTests.

这将创建 XCode 项目库、示例和单元测试。

回答by Daij-Djan

there is no ready-made tool to do this but you can use another project as a template, copy it, rename it and its targets/settings (it's all XML so you can parse and modify it, but for simplicity I would try to use a project template in which you only have to exchange some names :))

没有现成的工具可以做到这一点,但您可以使用另一个项目作为模板,复制它,重命名它及其目标/设置(它都是 XML,因此您可以解析和修改它,但为了简单起见,我会尝试使用一个项目模板,您只需在其中交换一些名称:))