简体   繁体   English

设备XCode 5.1上的Apple Mach-O链接器错误

[英]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: 您好,我最近已升级到XCode 5.1,在设备(Iphone 5S)上构建时,我的应用突然引发了很多错误,当我使用模拟器时,即使在IOS 7.1上一切都正常,错误如下:

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: 在“体系结构和有效体系结构”的构建设置中,我只有armv7,如果我离开标准架构,则消息如下:

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. 在ios版本中搜索libz.dylib并将其添加。

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 . Build Active Architecture仅更改为No。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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