集成七牛SDK的时候出现的错误 res_9_ninit crc32

程胡非
2023-12-01

集成七牛时出现的错误,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.dyliblibresolv.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)

 类似资料: