简体   繁体   中英

Xcode 4.5 (iOS) - Link projects (library and app)

I have 2 projects in the same workspace. One is iOS library and the other is iOS app.

Is there an easy way to get the app project use the library proejct? I have one requirement: Whenever i make changes in the library project i want them to automatically affect the app project.

Don't copy the Library project into your app project. Instead make a reference of Library project into app Project.

Whenever you import Library project into app project OR you just drag n drop it... then use reference of Library instead of copying of resources into app project...

this way whenever you made change in library project... it will automatically reflected in app project.

EDIT

Whenever you drag n drop a file in Xcode project.... You are asked 2 options...

  1. Copy items into Destination group's folder.
  2. Folder's option.

For option 1. De-Select the checkbox. which will create a reference for that file.

For option 2. you can do whatever you want....

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