Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    owenl's Avatar
    iPhone Nanite

    1 Posts

    Default How to link an arm .o file into an Xcode project

    I have a gnu built object file I need to include in an Xcode iPhone project. The .o file format is arm, via 'otool -h':

    Mach header
    magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
    0xfeedface 12 0 0x00 1 3 1316 0x00002000

    But Xcode rejects it, complaining that "file is not of required architecture". It accepts arm6 files (e.g. cpusubtype=6) but I am struggling to modify the GNU makefile to produce arm6 libraries.

    Is there an Xcode project setting that allows linking in arm object files?

    Xcode: 3.1.4
    iPhone SDK: 2.2.1
    Arch: Standard (armv6)

Posting Permissions