I have an iOS project using CocoaPods. Everything was working smoothly until another developer started to work on the same project. He made some changes (only to code as far as I know) and made a new branch in the repo. I have checked out his branch and tried to build it, but I am getting an error: ASLogger/ASLogger.h file not found.
Even if I delete the whole project and make a fresh copy and use 'pods install .' the build failure is still there. Do you have any idea where the problem can be? If you need some more infos, just ask.
Update
Make sure your Podfile
includes link_with
on targets missing a config file. Cocoapods only sets the first target by default otherwise. e.g.
platform :osx, '10.7'
pod 'JSONKit', '~> 1.4'
link_with 'Pomo', 'Pomo Dev', 'Pomo Tests'
------ End Update
Note: Please do note that you have to look into Project->Info->Configurations for steps below.
I had similar symptoms and found that the pods.xcconfig
file was not being included in the specific target
I was trying to build. Some of the other suggested solutions worked for me, but this one seemed to address part of the underlying issue.
The simple solution was to change set the configuration file for the targets that didn't have one set.
Update
I've updated this since my original answer, that got the downvote, so I hope this helps. And if it does, hopefully it will get my vote back.
If the headers aren't being imported, you probably have a conflict in the HEADER_SEARCH_PATHS
. Try and add $(inherited)
to the header search paths in your Build Settings to make sure that it pulls in any search paths included in the .xcconfig file from your CocoaPods.
This should help with any conflicts and get your source imported correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With