0

pod installNYXImagesKit 到我的示例项目,它成功构建但模拟器午餐后,有错误Xcode/XXX.m:17:9: 'NYXImagesKit.h' file not found

一切都很好,模拟器工作正常,唯一的问题是构建错误但没有链接错误,这很奇怪。

我在 中${PODS_HEADERS_SEARCH_PATHS}定义了HEADER SEARCH PATH,pod.config 如下:

ALWAYS_SEARCH_USER_PATHS = YES
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = ${PODS_HEADERS_SEARCH_PATHS} $(SDKROOT)/usr/include/libxml2
OTHER_LDFLAGS = -ObjC -lxml2 -framework Accelerate -framework AssetsLibrary -framework CoreImage -framework ImageIO -framework MobileCoreServices -framework QuartzCore
PODS_BUILD_HEADERS_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/NYXImagesKit" "${PODS_ROOT}/BuildHeaders/hpple"
PODS_HEADERS_SEARCH_PATHS = ${PODS_PUBLIC_HEADERS_SEARCH_PATHS}
PODS_PUBLIC_HEADERS_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/NYXImagesKit" "${PODS_ROOT}/Headers/hpple"
PODS_ROOT = ${SRCROOT}/Pods
4

1 回答 1

2

如果模拟器向您显示构建问题,我会感到惊讶。您可能想尝试从菜单栏中的 Product -> Clean 清理您的项目。或者从管理器中删除您的派生数据。还要验证 CocoaPods 是否具有最新版本pod --version(现在是 0.21.0),否则更新为[sudo] gem update

于 2013-07-02T16:09:46.917 回答