• 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: iOS Static Library -> Duplicate Class objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS Static Library -> Duplicate Class objects


  • Subject: Re: iOS Static Library -> Duplicate Class objects
  • From: email@hidden
  • Date: Mon, 22 Sep 2014 21:11:55 -0700

Tried that, I get a linker error saying it can’t find my classes from the framework target, how have I incorrectly set up the app that these symbols can’t be found by the test bundle?

I thought it might be something with the App’s strip configuration but my attempts to resolve it have failed.

.n

On Sep 22, 2014, at 2:56 PM, Jens Alfke <email@hidden> wrote:


On Sep 22, 2014, at 12:09 PM, email@hidden wrote:

  • A static library which contains the class WFRoutines
  • A .app which links against the static library
  • A test target for the .app which links against the static library as well

Don't link the library into the test target. It's already linked into the app. If you do both, you'll have duplicate copies of all the code, including Obj-C classes.

—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: 
 >iOS Static Library -> Duplicate Class objects (From: email@hidden)
 >Re: iOS Static Library -> Duplicate Class objects (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: iOS Static Library -> Duplicate Class objects
  • Next by Date: Re: Xc6 and disappearing unwind segues
  • Previous by thread: Re: iOS Static Library -> Duplicate Class objects
  • Next by thread: Xc6 and disappearing unwind segues
  • Index(es):
    • Date
    • Thread