1.设置Build Setting参数将Build Active Architecture only设置为NO
2.Mach-o type 修改为 static library或者dynamic library
3.Target->BuildSetting->Architectures->Excluded Architectures
debug/release 添加Any iOS Simulator SDK,后面添加arm64
如果不做这一步 会报错:
Building for iOS Simulator, but linking in dylib built for iOS, file '“path”XXX/XXXSDK.framework/XXXSDK' for architecture arm64
XXX have the same architectures (arm64) and can't be in the same fat output file
4.设置Headers,将要公开的头文件拖到Public下,要隐藏的放到Private或Project下,隐藏的头文件不能被引用,直接拖拽到Public中
5.lipo -create A B -output
6.lipo -info