【发布时间】:2020-06-06 08:50:48
【问题描述】:
我正在为 Twitter 使用以下可可豆荚。
target 'test' do
platform :ios, '12.0'
use_frameworks!
# Pods for test
pod 'GoogleSignIn'
pod 'TwitterKit'
post_install do |installer|
installer.aggregate_targets.each do |aggregate_target|
aggregate_target.xcconfigs.each do |config_name, config_file|
config_file.other_linker_flags[:frameworks].delete("TwitterCore")
xcconfig_path = aggregate_target.xcconfig_path(config_name)
config_file.save_as(xcconfig_path)
end
end
end
end
当我的部署目标是 12.0 时,每次都会出现以下错误
"TwitterKit doesn't support iOS 8.x and lower. Please, change your minimum deployment target to iOS 9.0"
`#error "TwitterKit doesn't support iOS 8.x and lower. Please, change your minimum deployment target to iOS 9.0"
最烦人的部分是当我尝试在控制台中使用 po 并获取
error: use of unresolved identifier 'count'
以及 twitter 错误。
【问题讨论】:
-
不要发布文字图片,而是发布文字。
-
@JoakimDanielson 更新了文字。
标签: swift xcode twitter cocoapods twitterkit