otool -l shows (0x80000022) Unknown load command on OSX 10.5 when framework was built from OSX 10.6

StackOverflow https://stackoverflow.com/questions/10918951

Frage

I built a framework using OSX 10.6 and everything is fine, I have the Base SDK and Deployment SDK set to 10.5. I also am building only a i386 arch.

When I bring this framework to a OSX 10.5 and I run otool -l on it I get the following results:

"Load command 6 cmd ?(0x80000022) Unknown load command"

Does anybody know how to fix this?

Thanks in advance

War es hilfreich?

Lösung

Turns out the or'ed in bit (0x80000000) on the load command message:

"Load command 6 cmd ?(0x80000022) Unknown load command"

means that the command is required, and then I found out that my base SDK was not set correctly, and once I corrected that and the deployment target to 10.5, I got (0x00000022) instead which means its not required so it's weak linked and doesn't cause any problems.

So my problem was a mistake by me, but I added some information on how to read the failures so hopefully this is useful to someone else.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top