如何使用第三方库:操场上的 SWXMLHash?

How can I use a third party library: SWXMLHash in the playground ?

我正在使用 SWXMLHash 解析我项目中的 xml 文件,它在项目中运行良好,但我想在操场上进行一些测试。

我想在 playground 中使用图书馆时一直出错:

Playground execution failed: test.playground:5:8: error: no such module 'SWXMLHash' import SWXMLHash ^

我终于按照苹果文档中提供的步骤使第 3 方库在 playground 中工作:

https://developer.apple.com/library/ios/recipes/Playground_Help/Chapters/ImportFramework.html

我遵循了替代解决方案,现在我可以在 playground 中使用第 3 方库。

感谢 link.

的 SWXMLHash 的创建者 David Mohundro