集成七牛时出现的错误,mark下
1:报 Undefined symbols for architecture x86_64: "_crc32", referenced from:
项目中需导入
libz.dylib
。(Build Phases
---Link Binary With Libraries
)
2: 若报
"_res_9_ninit", referenced from: _setup_dns_server in QNResolver.o
等,
(1). 项目中需导入 libresolv.dylib
或libresolv.9.dylib
。(Build Phases
--- Link Binary With Libraries
);
(2). 或 (Build Settings
--- Linking
--- Other Linker Flags
) 添加 -lresolv
选项
3: 报
Thread 1: EXC_BAD_ACCESS(code=1,address=0x180f4beb8)
类似错误,
将
QN
打头的都设置 arc
(Build Phases
--- Compile Sources
)(-fobjc-arc)