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 protected]> 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 protected]> 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 protected]>
>> wrote:
>>
>>> On Dec 3, 2014, at 1:16 PM, Beinan Li <[email protected]> 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 protected]
>>> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to