简体   繁体   中英

Using two Xcode projects with one target

I have one app I am trying to build called "App". I have an Xcode project called App.xcodeproj that lives in a Xcode workspace called App.xcworkspace . That is all working.

This is what I want:

A second Xcode project ( AppCore.xcodeproj ) that I can separately build on iOS or Mac. However there is no need to actually run the project (app). It will be the data layer of my app.

I then need to be able to access the files inside AppCore.xcodeproj from App.xcodeproj .


Update:

In this project, I will be using CloudKit. The Core project is the only thing interacting with CloudKit, however the actually target (app) using CloudKit is the "main" project.


How can I accomplish this?

Here is the tutorial GIF:

在此处输入图片说明

Remarks:

You can add existing project as well, just drag it into you xCode project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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