Fuzi
Fuzi copied to clipboard
have issue with playground
I like testing framework using playground (use this tool), which works fine with most pods like Alamofire, but your framework need to include libxml2, this some kind of improving the complication and it indeed not work, can you help me inspect this problem
@yaodis Hi there, it looks like an interesting tool. But I could get neither Alamofire nor Fuzi run in the playgrounds it generated. Would you tell me how you succeed in running Alamofire?

you need build first(click the run button), here is the proof

actually you can also using cocoapods with playground manually, here is the error I encounter( I can import the module, but it can't find libxml)

I've already built it. But no luck getting to where your screenshots show me.
But your error message shows that the Header Search Path is not properly set by this tool.
But it is specified in the podspec. https://github.com/cezheng/Fuzi/blob/master/Fuzi.podspec#L24
Therefore try adding $(SDKROOT)/usr/include/libxml2 to Header Search Path in the project build setting.
Tried, not work, I think only if I can set this for playground itself could work, but I can't
and there is a similar problem http://stackoverflow.com/questions/35735193/import-kanna-in-playground, he make it work by using old version pod, weird
for your issue, you can try clear module cache and derived date
What version of Xcode, CocoaPods, and the playground tool are you using?
Here's mine:
- Xcode 7.3
- CocoaPods 1.0.0.beta.6
- cocoapods-playgrounds 0.1.0
Just cannot import the module as my screenshot shows.
I am using 0.39, for CocoaPods 1.x.x, thing become more tricky, here you can find what I mean http://stackoverflow.com/a/36047766/4730119, but in general I don't think that's the crux of the problem
I somehow reproduced that same message by manually creating a playground. I guess this is a limitation of Xcode playgrounds, since they don't hold any build settings information themselves. And in the libxml2 headers I include in the modulemap, they include their peer headers using a include path that is not set by default in Xcode.