• 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: Can a 32bit only MacOS Application use 64bit-only Frameworks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?


  • Subject: Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Tue, 30 Sep 2014 13:54:47 -0700


> On Sep 30, 2014, at 12:49, Motti Shneor <email@hidden> wrote:
>
> Hello everyone. This seems to be an upside-down question, but bare with me...
>
> Our Mac Client-side application can (sadly) only be built and run in 32bit-only. Reason is: bit parts of it are legacy 32bit-only C++ code shared with other platforms (Windows, Android, Linux, etc.) client code as well as the Windows-only server. This code contains  networking-protocol code which is 64bit unsafe, and so it can't really be replaced.
>
> Until All platforms and products move together to 64bit, we're bound to build our app 32bit only.
>
> Now I'm building a new module for this application as an external private dynamic framework. I would like to use ARC, and the new niceties of modern Obj-C runtime for the new framework, but these are only available in 64bit-only builds.
>
> So… Could my 32bit-only Mac Application depend-on, load, link, and use, a 64bit-only framework?

No.

You basically have two options:

1) Build a helper app or tool that is 64-bit (and can therefore link 64-bit code) and call that too, from your 32-bit app
2) Move your 64-bit-unsafe code into a helper tool and make the rest of the app 64-bit.

Both options rely on having two separate processes, one running 32-bit code and one running 64-bit code, and only differ in which you put in the main app and which you put in the helper.


--
Clark Smith Cox III
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Can a 32bit only MacOS Application use 64bit-only Frameworks? (From: Motti Shneor <email@hidden>)

  • Prev by Date: Re: Compressing glyphs programmatically
  • Next by Date: Migration failing
  • Previous by thread: Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?
  • Next by thread: Migration failing
  • Index(es):
    • Date
    • Thread