1

我有一个旧的objective-c项目。在框架组中,我有不同的框架,例如CoreDateUIKit...和YAJL一个。当我尝试构建我的项目时,我收到此错误:

ld: file too small (length=0) file '/Users/userName/MyApp/MyAppContent/Libraries/YAJL.framework/YAJL' for architecture i386

YAJL是在文件夹中,而Frameworks不是在Libraries. MyApp它与文件夹具有相同的级别。

我搜索了file too small (length=0)我尝试了所有解决方案的错误(最流行的是清理和重建项目),但我得到了同样的错误。

Build setting->Framework search path中:我发现我有“$(SRCROOT)/MyApp/Libraries”,如果我删除它,我会得到YAJL/YAJL.h file not foundand ld: file too small (length=0) file '/Users/userName/MyApp/MyAppContent/Libraries/YAJL.framework/YAJL' for architecture i386.

当我添加时,"$(SRCROOT)/Frameworks/YAJL.Framework"我得到:-F No directory found Frameworks

谁能告诉我,我该如何解决这个问题?

4

0 回答 0