在 Xcode 中导入项目示例

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9887550/
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-14 23:47:59  来源:igfitidea点击:

importing project samples in Xcode

iosxcode

提问by puru

I had downloaded a sample source project to the downloads directory. But I could not find any documentation about how these sample project are imported in the Xcode ide so that i can build and run the code to have a quick look up. Is these downloaded sample project should be build and run by importing can be possible in Xcode. if yes then please please please have a nice method to do this.

我已将示例源项目下载到下载目录。但是我找不到关于如何在 Xcode ide 中导入这些示例项目的任何文档,以便我可以构建和运行代码以快速查找。这些下载的示例项目应该可以通过导入构建和运行在 Xcode 中。如果是,那么请请有一个很好的方法来做到这一点。

Thanking you..

感谢您..

回答by sch

Just double click on the .xcodeprojfile.

只需双击.xcodeproj文件。

enter image description here

在此处输入图片说明

回答by bs7

You just have to double-click on the .xcodeproj file to launch the sample project with Xcode. Then choose the way you want to "execute" the application (for example, on the iPhone simulator). Finally, Build and Run.

您只需双击 .xcodeproj 文件即可使用 Xcode 启动示例项目。然后选择您想要“执行”应用程序的方式(例如,在 iPhone 模拟器上)。最后,构建并运行。

If you have "Missing SDK", click on the project name and select the deployment target, then click on the "Build Settings" tab and change the Base SDK to Latest for example.

如果您有“Missing SDK”,请单击项目名称并选择部署目标,然后单击“Build Settings”选项卡并将 Base SDK 更改为例如最新。

Enjoy ! :)

享受 !:)

回答by jamylak

Unzip the folder and then open the .xcodeproj file?

解压文件夹,然后打开 .xcodeproj 文件?