I have added GitHub's Mantle project to a iOS 6 project using CocoaPods:
$ pod search Mantle
$ vim Podfile // here I added pod 'Mantle'
$ pod install // this installs Mantle 1.0
Then I have added the ($inherited)
variable to the Header Search Paths
of project's 'Build Settings' section, before my custom search paths. When importing the Mantle header file Xcode complains with
#import "Mantle.h" // => 'Mantle/MTLJSONAdapter.h' file not found
Am I missing some step? I have other pods installed as well (AFNetworking and SSKeychain) but only Mantle is giving me issues.
I have also added SSToolkit but following the instructions on its 'Getting started', i.e. not using CocoaPods.
Since the problem seemed to be related with the Xcode project/workspace configuration I tried all kind of 'cleaning' solutions:
Pods
directory, the Podfile.lock
file and install everything from scratch.MyProject.xcworkspace
directory and repeat step 1MyProject.xcodeproj
, delete project.xcworkspace
and xcuserdata
directories and repeat step 1./Users/my_user/Library/Developer/Xcode
), remove everything related to the project, specially the DerivedData
subdirectory, and repeat step 1.The final step seems to be the final solution, though I cannot tell which file/folder removal did the trick.
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