跪求大大指引!
需求: 小弟太廢,卡在基礎問題上,今天遇到一個問題,我想要從web上crawler資料,目前成功用NSURLsession拿到回傳值,但是是一堆html。所以我上網查找到一個google強大的obj-c可以使用的html解析工具。
有一位作者文章 有編譯好的檔案。網址:http://www.jianshu.com/p/029a5ef4e86a
但是我在theos的makefile不知道要怎麼導入他的.a檔案,也不清楚是要把他整個資料夾放在我的tweak目錄下,還是要放在~/opt/theos/lib下面。 書上翻幾遍也不知道怎麼做…
請問我該如何成功導入OCGumbo到我的專案上呢?
以下是我的makefile:
include $(THEOS)/makefiles/common.mk
ARCHS = armv7 arm64
TARGET = iphone:latest:8.1
THEOS_DEVICE_IP=144.0.0.3
THEOS_DEVICE_PORT=2000
test_CFLAGS = -I./headers
APPLICATION_NAME = test
test_FILES = main.m AppDelegate.m RootViewController.m InfoTableViewController.m
test_FILES += $(wildcard SQLiteManager/.m)
test_FILES += $(wildcard EquipmentInfo/.m)
test_FRAMEWORKS = UIKit CoreGraphics
test_PRIVATE_FRAMEWORKS = MobileInstallation IOKit
test_LIBRARIES = applist
test_LDFLAGS = -lsqlite3 -lMobileGestalt
test_LDFLAGS += libGumbo.a
test_CODESIGN_FLAGS = -Sentitlements.xml
include $(THEOS_MAKE_PATH)/application.mk
after-stage::
$(ECHO_NOTHING)chmod +s $(THEOS_STAGING_DIR)/Applications/test.app/test$(ECHO_END)
after-install::
install.exec “su mobile -c uicache”
install.exec “killall -9 SpringBoard”
OCGumbo網址:https://github.com/tracy-e/OCGumbo/blob/master/OCGumbo/OCGumbo.h
环境: ios8 jb, theos