Xcode 4.2 link error: libz issue?

前端 未结 3 1237
情话喂你
情话喂你 2021-01-12 11:36

Moving a project to Xcode 4.2, I am getting a number of Mach-O linker unresolved errors, for things like _crc32, _expf, and _UnwindSjLj_Register, on a project that compiles

3条回答
  •  轮回少年
    2021-01-12 12:10

    Link against the libz.dylib, but add it through the Build Phases tab.

    Project >> Target >> Build Phases >> Link Binary With Libraries

    Press + under the list and select the libz.dylib then it will add the lib so it will work inbetween SDK updates.

提交回复
热议问题