有两个名为"发布-iphoneos"和#34; Release-iphonesimulator",我使用这些命令来创建通用框架,但是仍然有一些错误"文件是为x86_64构建的,而不是被链接的架构(i386)&#34 ;
lipo -create" Release-iphoneos / Fxencrypt.framework / Fxencrypt" "推出-iphonesimulator / Fxencrypt.framework / Fxencrypt" -output" Fxencrypt"
cp -R Release-iphoneos / Fxencrypt.framework ./Fxencrypt.framwork
mv Fxencrypt ./Fxencrypt.framwork/Fxencrypt
lipo -info就是这些
lipo -info发布 - iphoneos / Fxencrypt.framework / Fxencrypt 胖文件中的体系结构:Release-iphoneos / Fxencrypt.framework / Fxencrypt是:armv7 arm64
lipo -info Release-iphonesimulator / Fxencrypt.framework / Fxencrypt 胖文件中的体系结构:Release-iphonesimulator / Fxencrypt.framework / Fxencrypt是:i386 x86_64
lipo -info Fxencrypt.framework / Fxencrypt 胖文件中的体系结构:Fxencrypt.framework / Fxencrypt是:armv7 i386 x86_64 arm64