1

I am using the following cocoa pod for 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

Getting the following error every time, when my deployment target is 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"

enter image description here

The most irritating part is I am getting this error when I am trying to use po in the console and getting error: use of unresolved identifier 'count' along with twitter error.

Tapas Pal
  • 7,073
  • 8
  • 39
  • 86

1 Answers1

0

You need to set the iOS Deployment Target for TwitterKit target too to iOS 12.0 to fix this issue. It's a common mistake.

Add these lines to your Cocoapod file too.

platform :ios, '12.0'
use_frameworks!
Frankenstein
  • 15,732
  • 4
  • 22
  • 47