5

我的 iOS 项目使用 RestKit 作为静态库(在 GIT 子模块中)。

当我做:

xcodebuild -project myproject.xcodeproj -configuration Debug

一切顺利。但是,当我更改输出目录时:

xcodebuild -project myproject.xcodeproj -configuration Debug CONFIGURATION_BUILD_DIR=build

xcodebuild 找不到我的库头文件:

/path/to/my/project/file.m:9:9: fatal error: 'RestKit/RestKit.h' file not found
#import <RestKit/RestKit.h>
        ^
1 error generated.

这里会发生什么?


编辑

经过一番调查,我发现在添加时CONFIGURATION_BUILD_DIR=build,xcodebuild 根本不会从 RestKit 复制标头。

不使用CONFIGURATION_BUILD_DIR

CpHeader Code/RestKit.h ...

使用CONFIGURATION_BUILD_DIR:什么都没有。

4

0 回答 0