如圖, pod install
之后出現(xiàn)出現(xiàn) 2
個(gè) FMDB
的 framework
.
然后在 xcode10
上 archive
的時(shí)候就會(huì)報(bào)錯(cuò): Error: Multiple commands produce...
.
事例圖
一直以來都用 pod init
來創(chuàng)建 Podfile
, 也未遇到過什么問題.
Podfile
內(nèi)容如下:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'TARGET' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for TARGET
end
記得把 platform :ios, '9.0'
注釋去掉, 讓他生效. 不然就有可能會(huì)遇到上面的問題.
暫未深究原因, 有些猜想, 待后續(xù)驗(yàn)證.