• 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
Two problems building 32/64 framework for Lion/ARC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two problems building 32/64 framework for Lion/ARC


  • Subject: Two problems building 32/64 framework for Lion/ARC
  • From: David Hoerl <email@hidden>
  • Date: Tue, 07 Feb 2012 08:56:25 -0500

1) I support an open source framework that I'm migrating to Xcode 4.2 / ARC. It uses the 10.7 SDK and with a deployment target of 10.6, and should support 32 and 64 bit runtimes.

It appears that I can use ARC in 64 bit mode but not in 32. So, I am going to need to deal with perhaps 20 instances of autorelease. My thoughts are to add two defines and wrap these lines, so that if in 32 bit mode I get a prefix of "[" and a suffix of "autorelease]" and in 64 bit they are nil. Does anyone have a better idea?

Will the end framework properly serve both 32 and 64 bit apps, or should I really not use ARC at all?


2) I have one Xcode 4.2 project with two targets in it. The first is the framework, and it builds a "Deployment" configuration, installing the framework into /Library/Frameworks.

The second is a test program that should link to the framework. It has a dependency on the framework, and I added the /Library/Frameworks/<my framework> into the link phase.

The project builds just fine, but when I run the test program, I get warning messages telling me the app found two frameworks in the derived location with no mention of the /Library/Frameworks framework:

objc[14234]: Class DHExtendedFormat is implemented in both /Volumes/Data/Users/dhoerl/Library/Developer/Xcode/DerivedData/DHxls-egairltentzzyfdfxctitwqrqjjy/Build/Products/Deployment/DHxls.framework/Versions/A/DHxls

   and


/Volumes/Data/Users/dhoerl/Library/Developer/Xcode/DerivedData/DHxls-egairltentzzyfdfxctitwqrqjjy/Build/Products/Deployment/testXlsLib.

   One of the two will be used. Which one is undefined.


PLUG for ARC: just building the project in ARC turned up at least one bug - where I was passing an object instead of a pointer to a struct - so there are real benefits to the conversion :-)

[ARC, GCD, and blocks: man am I a happy camper!!!]
_______________________________________________
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


  • Follow-Ups:
    • Re: Two problems building 32/64 framework for Lion/ARC
      • From: Jean-Denis MUYS <email@hidden>
  • Prev by Date: Re: iOS allows ivars in class extension but Mac OS doesn't?!
  • Next by Date: Xcode and Mapnik
  • Previous by thread: Re: iOS allows ivars in class extension but Mac OS doesn't?!
  • Next by thread: Re: Two problems building 32/64 framework for Lion/ARC
  • Index(es):
    • Date
    • Thread