如何在xcode中集成一个项目文件到另一个项目文件

时间:2020-12-02 22:54:02

Hello friends I developed an app in ios in that contains a database (coredata) the user can login with a username and a password and then he can store the personal details, pictures, files, documents.... Now, I want to link this Xcode project to another code project of mine so can anyone help how to add one Xcode project file to another. I tried by adding new files in Xcode but it was not showing project file which I want to add hope I'll get the best answer

你好朋友我在ios开发了一个应用程序,其中包含一个数据库(coredata)用户可以登录用户名和密码,然后他可以储存个人信息,图片,文件,文件....现在,我想将这个Xcode项目链接到我的另一个代码项目,以便任何人都可以帮助如何将一个Xcode项目文件添加到另一个。我尝试在Xcode中添加新文件,但是它没有显示项目文件,我想添加希望我能得到最好的答案

2 个解决方案

#1


1  

You can drop the .xcodeproj you want to add in the file selector in the sidebar of Xcode.

您可以在Xcode的侧边栏中删除要添加的.xcodeproj。

#2


0  

The best approach would be to move the files into a separate directory, treat it as a separate project and put that project under revision control. Then link it to your two other projects as a submodule.

最好的方法是将文件移动到一个单独的目录中,将其视为一个单独的项目,并将该项目置于修订控制之下。然后将它作为子模块链接到其他两个项目。

#1


1  

You can drop the .xcodeproj you want to add in the file selector in the sidebar of Xcode.

您可以在Xcode的侧边栏中删除要添加的.xcodeproj。

#2


0  

The best approach would be to move the files into a separate directory, treat it as a separate project and put that project under revision control. Then link it to your two other projects as a submodule.

最好的方法是将文件移动到一个单独的目录中,将其视为一个单独的项目,并将该项目置于修订控制之下。然后将它作为子模块链接到其他两个项目。