ios framework 真机和模拟器合并

最近百度地图的SDK更新了,为了兼容IOS 9 ,不得不做更新。

下载SDK后发现,原来的静态库.a木有了。现在是framework,而且做了真机和模拟器两个,显然需要我们将两个framework合并成一个。framework不能直接合并,也不需要,只要我们合并目录下面的BaiduMapAPI就可以了。方法跟合并.a是一样的。

->打开终端

->输入 lipo -create Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI Release-iphonesimulator/BaiduMapAPI.framework/BaiduMapAPI -output Release-iphoneos/BaiduMapAPI.framework/BaiduMapAPI

猜你喜欢

转载自blog.csdn.net/HeroRazor/article/details/51942956