• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sharing code between projects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sharing code between projects


  • Subject: Re: Sharing code between projects
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 29 Apr 2013 09:30:59 -0700


On Apr 29, 2013, at 4:20 AM, Jean Suisse <email@hidden> wrote:

It works well, but when I create new folders and add new source files to my "library", those aren't updated in all projects. They aren't visible in the folder tree and they aren't added to the target. The quickest solution I have is to remove the root folder of my "library" and add it again.

Put an Xcode project in your library folder, and create a target that builds all the source files into a static library.
Then drag that project file into your app project(s), and configure your app target to link against its output static library.
There's a full description here:
http://developer.apple.com/library/ios/#technotes/iOSStaticLibraries/Introduction.html#//apple_ref/doc/uid/TP40012554-CH1-SW1

—JEns
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Sharing code between projects (From: Jean Suisse <email@hidden>)

  • Prev by Date: Re: Sharing code between projects
  • Next by Date: Re: Sharing code between projects
  • Previous by thread: Re: Sharing code between projects
  • Next by thread: Certificate identity
  • Index(es):
    • Date
    • Thread