• 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: Universal Binary does not have i386?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal Binary does not have i386?


  • Subject: Re: Universal Binary does not have i386?
  • From: Beinan Li <email@hidden>
  • Date: Wed, 03 Dec 2014 17:33:47 -0500

When I use otool -hfv, then I see there is an i386 header:

Fat headers
fat_magic FAT_MAGIC
nfat_arch 2
architecture x86_64
    cputype CPU_TYPE_X86_64
    cpusubtype CPU_SUBTYPE_X86_64_ALL
    capabilities CPU_SUBTYPE_LIB64
    offset 4096
    size 9144
    align 2^12 (4096)
architecture i386
    cputype CPU_TYPE_I386
    cpusubtype CPU_SUBTYPE_I386_ALL
    capabilities 0x0
    offset 16384
    size 13128
    align 2^12 (4096)
/Users/me/Documents/test/Xcode/HelloFatBinaryMac/Build/Debug/HelloFatBinaryMac:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL LIB64     EXECUTE    19       1712   NOUNDEFS DYLDLINK TWOLEVEL PIE

Does this tell me that the i366 might be in there somewhere?


Thanks,
Beinan


On Wed, Dec 3, 2014 at 5:17 PM, Beinan Li <email@hidden> wrote:
Sorry Scott for double post. I forgot to CC the list.
Here is the otool -hv output:

Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL LIB64     EXECUTE    19       1712   NOUNDEFS DYLDLINK TWOLEVEL PIE



Thanks,
Beinan


On Wed, Dec 3, 2014 at 5:15 PM, Beinan Li <email@hidden> wrote:
I made sure both my project and target settings use the same setup I described.
Still the same result: x86_64 only with Universal(32/64-bit Intel), i.e., $(ARCHS_STANDARD_32_64_BIT).

Thanks,
Beinan


On Wed, Dec 3, 2014 at 3:29 PM, Scott Ribe <email@hidden> wrote:
On Dec 3, 2014, at 1:16 PM, Beinan Li <email@hidden> wrote:
>
> I tried to build universal binary, but noticed that having i386 and x86_64 in the Architectures field of the Xcode project yields x86_64 only, observed with otool. I made sure Build Active Architecture Only was set to "No", and both arches are included in Valid Architectures.

At what level? Make sure you're not in a situation where you're editing the project level but have settings at the target level which are overriding them.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice







 _______________________________________________
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: Universal Binary does not have i386?
      • From: James Moore <email@hidden>
References: 
 >Universal Binary does not have i386? (From: Beinan Li <email@hidden>)
 >Re: Universal Binary does not have i386? (From: Scott Ribe <email@hidden>)
 >Re: Universal Binary does not have i386? (From: Beinan Li <email@hidden>)
 >Re: Universal Binary does not have i386? (From: Beinan Li <email@hidden>)

  • Prev by Date: Re: Universal Binary does not have i386?
  • Next by Date: Re: Universal Binary does not have i386?
  • Previous by thread: Re: Universal Binary does not have i386?
  • Next by thread: Re: Universal Binary does not have i386?
  • Index(es):
    • Date
    • Thread