Вопрос

Gameclosure distrubutes precompiled SpiderMonkey for iOS. But the problem is that they use FAT static library. And the tools I am using on the JB iphone cannot recognize such a library.

FAT library basically has two libraries inside, one for simulator (i386) and one for iPhone (arm). So is there a way to extract only arm version and save as regular static library?

PS. I am really used to compile on iPhone, I do not want to go back to Xcode.

Это было полезно?

Решение

You can use the "lipo" tool to extract one architecture, e.g.

lipo -thin armv7 -output SpiderMonkey-armv7.a SpiderMonkey.a
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top