iphone - specifed architecture type (arm) for file does not match it's cputype (7) and cpusubtype (3) -
I have tried to use openLdap for my iPhone app at the moment, I am currently developing. I am using fat_build.sh to openladap compile. I am also developing simulator 3.1.3 and OS X 10.6.0. But the last step
$ DEVROOT / usr / bin / Lipo -arch hand lnsout / $ LIBLDAP_NAME_static.arm -arch i386 lnsout / $ LIBLDAP_NAME_static.i386 ago-output lnsout / $ LIBLDAP_NAME_static $ DEVROOT / usr / bin / Lipo -arch hand lnsout / $ LIBLBER_NAME_static.arm -arch i386 lnsout / $ LIBLBER_NAME_static.i386 ago-output lnsout / $ LIBLBER_NAME_static
I have the following error:
/ developer / platforms / iPhoneOS.platform / developer / usr / bin / Lipo file the specified architecture (hand) (lnsout / libldap.a.arm) it cputype is (7) and cpusubtype (3) does not match should be (cputype account (for 12) and cpusubtype (0)) /Developer/Platforms/iPhoneOS.p latform / Developer / usr / bin / lipo: file specified architecture for (hand) (lnsout / liblber.a.arm) it does not match cputype (7) and should cpusubtype (cputype 3) ((12) and Cpusubtype (0))
I tried to fix it by setting up the Find Finder Path, Library Search Path and Linker Flag Without The Results.
So if you have any idea how I can solve this problem, please tell me!
I get an error when I was creating LibSc 2 for the iPhone, and a lot After all the searches, I came to know that it was actually built for my .656 (My MacBook Pro).
I have yet Aarmvi 6 (device), i386 (computer) and x86_64 (simulator) went so far to compile Libsesh 2, to ensure that built each version correctly I then The hand and the X86_64 architecture were added using the lipo. In my notes, I have a starred comment that "Make 'Clear' and 'Disclaim' are your friends," Perhaps if you had previously created a library for your machine, then there was still a config file for it Was created for.
I want to see more information on the build type "lipo -info libldap.a.arm" and "file libldap.a.arm" (modified to Failnamon) used commands. FYI, once they have been created correctly, those orders have been discovered by architecture "hand" and
One last thing I have seen is "x86_64." - The code in the GitHub link above actually contains pre-compiled universal binaries for libldap. After mixing around .a and liblber.a libraries, I saw that and used those two files with the ldap.h file , And I was good to go.
Comments
Post a Comment