问题 1
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
解决方案
执行 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
输入电脑密码即可
参考 xcode-select active developer directory error
问题 2
have the same architectures (arm64) and can't be in the same fat output file
解决方案
模拟器静态库与真机静态库支持的架构有重叠,即上面显示的 arm64,可通过 lipo -info 库名
查看支持的架构
可在静态库工程 Build Settings -> Excluded Architectures 里按照这样设置一下即可
网友评论