简体   繁体   中英

Apple Mach-O Linker Error on device XCode 5.1

Hello i've recently upgraded to XCode 5.1 and suddenly my app throws a lot of errors when building on the Device (Iphone 5S), when I use the simulator everything works fine even on IOS 7.1, the error is the following:

Undefined symbols for architecture armv7:

In my build setting in Architectures and Valid Architectures I have only armv7, if I leave Standard Arquitectures the message is the following:

Undefined symbols for architecture arm64:

Please I need help, I've tried everything already and cannot continue developing my app. Thank you very much

Go to Project-> Build Phases- > click on the + sign below. Search for libz.dylib in ios version and add it.

This error means that you are using a defined function, but the linker cannot find the implementations of those functions. This is like having a slip of paper telling you where in a library to find a book, but the book is missing or moved somewhere.

Check to make sure that you are linking against all of the needed frameworks and that all of your source files are set to be built in the project settings.

Go into your projects build settings under the Architecture heading. Change Build Active Architecture Only to No .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM