Without seeing your podfile I'm only really guessing here, but from my experience that error means that your podfile isn't formatted correctly. Recently they made some changes to the podfile structure so if you have an old podfile but updated Cocoapods to a new version it is likely that your podfile won't work.
Everything in the podfile now needs to be explicitly attached to a target by placing it in that target's block. If you run pod init
the podfile generated should have a couple of blocks that look like this:
Target 'Your App' do
end
You may also have targets for Your App iOSTests
and Your App iOSUITests
. If you open Xcode you'll see these targets correspond to the top-level folders in your project.
You'll want to place the pod 'Kanna', '~> 1.1.0'
between the Target
and end
to attach it to that specific target.
If you have an old podfile without these targets I would recommend starting again with a fresh one generated by running pod init
, though if you want you could reformat it to be in the above format.