xcode 12 制作.framework静态库上传私有仓库报错

806 阅读1分钟

制作完.framework后自己往自己的私有specs仓库中去上传。使用pod spec lint联网验证静态库的.podspec文件时候报错[iOS] xcodebuild: clang: error: linker command failed with exit code 1 ,然后又使用pod spec lint --verbose 查看编译的debug报错提示如下:[/Users/xxxx/Library/Developer/Xcode/DerivedData/App-cdqctbehlpcsapcvjugtzgdnrgcc/Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64]

解决方法:这里看到的解决方案。在xcode中进行如下配置,然后重新打包,然后在去验证一下就好了。

Snip20210511_19.png