简体   繁体   English

将xcode项目添加到另一个xcode项目

[英]Adding an xcode project into another xcode project

I came across many other SO question but could not found the answer what i needed. 我遇到了许多其他问题,但找不到所需的答案。

So heres my problem. 所以这是我的问题。

I have created a simple app that just shows the google map and shows my current location. 我创建了一个简单的应用程序,仅显示google地图并显示我的当前位置。

and then I have created another TabBar based application. 然后我创建了另一个基于TabBar的应用程序。 Now how I will include that map application to my new TabBar based application. 现在,我将如何将该地图应用程序包含到基于我的新TabBar应用程序中。 And when I select the tab the map project should show its data. 当我选择选项卡时,地图项目应显示其数据。 means the map should be shown. 表示应显示地图。

How this could be achieved?? 如何做到这一点?

You might want to create a Workspace if you want to manage code base for 2 projects sharing same resources. 如果要管理共享相同资源的2个项目的代码库,则可能要创建工作区。

Here are some links that will help you get to know how xcode workspace works. 这里有一些链接,可以帮助您了解xcode工作区的工作方式。

http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html

How should I manage dependencies across projects in an Xcode workspace? 如何在Xcode工作区中跨项目管理依赖关系?

http://blog.harbinger-systems.com/2011/11/workspace-%E2%80%93-better-way-of-organizing-your-xcode-projects/ http://blog.harbinger-systems.com/2011/11/workspace-%E2%80%93-better-way-of-organizing-your-xcode-projects/

http://cocoamanifest.net/articles/2011/06/library-management-with-xcode-workspaces.html http://cocoamanifest.net/articles/2011/06/library-management-with-xcode-workspaces.html

You might or might not get much help from the last link but it will be of a great assest for you to learn the library management from workspace. 您可能会或可能不会从上一个链接获得太多帮助,但这对于您从工作区学习图书馆管理将是一个很大的帮助。

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

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