• 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: Possible for a running iOS app to determine if its in 32 bit or 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit


  • Subject: Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 16 Nov 2014 01:26:37 -0600

On Sat, Nov 15, 2014, at 07:24 PM, David Hoerl wrote:
> I am trying to make a point that some complicated gloming of code has
> resulted in a 64 bit app. Of course the app is build 32 and 64 bit, so
> its possible (but highly unlikely) that the 32 bit version was actually
> launched, not the 64 bit, for who knows what reason. [I'm actually
> running it via Xcode now, on a 64 bit device0.]
>
> I'm looking for any API I can use to settle this once and for all. As
> always, any pointers most appreciated.

Whether code is 32-bit or 64-bit is a compile-time decision. So the
__LP64__ macro that others have mentioned is sufficient to generate
different codepaths on different platforms.

And since 32-bit code and 64-bit code cannot exist in the same process
space on Darwin systems, you know that if *your* code is 64-bit, *all
other code* in your process (including system frameworks, etc.) is
64-bit. There is no situation in which a 32-bit app is linked against a
64-bit copy of Foundation, for example.

--Kyle Sluder
 _______________________________________________
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: 
 >Possible for a running iOS app to determine if its in 32 bit or 64 bit (From: David Hoerl <email@hidden>)

  • Prev by Date: Any way to prevent Xcode SourceKitService crashing?
  • Next by Date: Re: Any way to prevent Xcode SourceKitService crashing?
  • Previous by thread: Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit
  • Next by thread: Preventing Xcode from building tests when building main target?
  • Index(es):
    • Date
    • Thread