我有一个旧的objective-c项目。在框架组中,我有不同的框架,例如CoreDate
,UIKit
...和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 found
and 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
谁能告诉我,我该如何解决这个问题?