Problem with CocoaPods 0.37.2 and KissXML 5.0
XCode 6.3.2 CocoaPods 0.37.2 KissXML 5.0
I am having trouble compiling KissXML as a module after upgrading from CocoaPods 0.35.0.
I am getting tons of errors like this:
Error: (2, 9) 'libxml / tree.h' file not found with include; use "quotes" instead
I have both a Mac and an iOS project that share code and they both work the same way. If I reinstall 0.35.0, they build just fine.
I should mention that I have a DDXMLDocument subclass defined in my application and also a category in DDXMLElement.
I tried to create a smaller project demonstrating the problem, but was unable to create one that fails in the same way, so it must be something unique to my project.
Anyone have any idea where to look?
Bruce
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.1"
inhibit_all_warnings!
pod 'BButton'
pod 'CocoaAsyncSocket'
pod 'CocoaLumberjack'
pod 'CSNotificationView'
pod 'Dropbox-iOS-SDK'
pod 'HockeySDK'
pod 'KissXML'
pod 'MBProgressHUD'
pod 'MMMarkdown'
pod 'Reachability'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
pod 'SWRevealViewController'
pod 'UIDevice-Hardware'
None of the answers were correct or necessary, but thanks for the answers.
It turns out the problem was that the recursive reference to the Pods folder was added either to the project or to the USER_HEADER_SEARCH_PATHS target.
I thought it was an artifact from an older version of CocoaPods ... until AppCode almost immediately asked me to re-add it.
You have to add -lxml2
in OTHER_LD_FLAG
in target build setting and also add $(SDKROOT)/usr/include/libxml2
in HEADER_SEARCH_PATHS
targets.
Clean and build again, it should work
Using this subfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.1"
target 'KissXML' do
pod 'BButton'
pod 'CocoaAsyncSocket'
pod 'CocoaLumberjack'
pod 'CSNotificationView'
pod 'Dropbox-iOS-SDK'
pod 'HockeySDK'
pod 'KissXML'
pod 'MBProgressHUD'
pod 'MMMarkdown'
pod 'Reachability'
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
pod 'SWRevealViewController'
pod 'UIDevice-Hardware'
end
following with these Pods:
Installing BButton (4.0.2)
Installing CSNotificationView (0.5.4)
Installing CocoaAsyncSocket (7.4.1)
Installing CocoaLumberjack (2.0.1)
Installing Dropbox-iOS-SDK (1.3.13)
Installing HockeySDK (3.7.1)
Installing KissXML (5.0)
Installing MBProgressHUD (0.9.1)
Installing MMMarkdown (0.4.3)
Installing Reachability (3.2)
Installing Reveal-iOS-SDK (1.5.1)
Installing SWRevealViewController (2.3.0)
Installing UIDevice-Hardware (0.1.5)
with the addition of this Bridging-Header.h
#import "DDXML.h"
... I can successfully create, link, build and run DDXMLDocumentSubclass
in Swift :
import UIKit
class DDXMLDocumentSubclass: DDXMLDocument {
// ...
}
... and a category in Obj-C :
// DDXMLElement+Convenience.h
#import "DDXMLElement.h"
@interface DDXMLElement(Convenience)
// ...
@end