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导出了

文件名不冲突 可正常合并

你可能感兴趣的:(iOS can't move temporary file:'' to file: '' (Is a directory))