iOS can't move temporary file:'' to file: '' (Is a directory)

a文件夹内有真机和模拟器两个静态库

使用lipo -info合并静态库的时候报错can't move temporary file: '' to file:'' (Is a directory),并生成了一个a.lipo文件。

lipo -create /Users/xy/Desktop/a/Release-iphoneos/a.framework/a /Users/xy/Desktop/a/Release-iphonesimulator/a.framework/a -output a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't move temporary file: a to file: a.lipo (Is a directory)

报错的原因是你要导出静态库a的位置有个同名的文件夹a,名字冲突了。

同名冲突

修改文件夹名就可以正常使用lipo -create导出了

文件名不冲突 可正常合并

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容