问题:
今天上传app到appstore时遇到静态库的bitCode问题。
lipo -create file1 file2 -output file可以把两个静态库合并为一个。
其中,file1是iphone真机build出来的静态库.a,file2是iphone虚拟机build出来的静态库.a。(都是采用release模式)
但是,在archive时,xcode提示存在bitCode兼容性问题。
解决方法:
file1由iphone真机build出来,但是采用archive(而非release);file2仍然是iphone虚拟机build出来。
再通过lipo命令,把它们合在一起,就pass了。
参考文献:
http://stackoverflow.com/questions/31233395/ios-library-to-bitcode