0
我创建快捷2.0一个简单的测试类和Xcode 7.3:上的Xcode 7.3运行测试:无法建立的Objective-C模块 '的libxml2'
import XCTest
@testable import MyTestProject
class ChangeWishListTests: XCTestCase {
func testViewLoad() {
let changeWishListVC = ChangeWishListViewController()
changeWishListVC.viewDidLoad()
XCTAssert(changeWishListVC.view != nil, "Passed")
}
}
,并使用该库XML解析:https://github.com/tid-kijyun/Kanna
但是当我运行测试,我得到错误:
:0: error: could not build Objective-C module 'libxml2'
是与测试目标链接的libxml2库吗? – azimov
我可以在哪里查看? – Arti
您是否已将路径添加到“标题搜索路径”? – vadian