iPhone仿真器(链接器命令失败,退出代码为1(使用-v查看调用)) [英] Iphone simulator (linker command failed with exit code 1 (use -v to see invocation))

查看:161
本文介绍了iPhone仿真器(链接器命令失败,退出代码为1(使用-v查看调用))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Unity来构建iPhone游戏.当我为iPhone模拟器构建时,出现了这个烦人的错误: 我尝试为iOS 4.2和更高版本进行构建...但是没有希望.

I am using Unity to build iPhone game. When I build for iPhone simulator I got this annouing error: I tried to build for iOS 4.2 and later versions... but no hope..

ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)

推荐答案

问题可能是您试图将针对OS X SDK构建的静态存档链接到iOS Simulator可执行文件中.先前版本的Xcode工具链无法避免这种情况(这可能导致各种运行时问题,这两个平台之间存在二进制不兼容性).

The issue is likely that you are trying to link a static archive that was built against the OS X SDK into your iOS Simulator executable. Previous versions of Xcode's toolchain did not guard against this (which can lead to various runtime issues where there are binary incompatibilities between the two platforms).

您的Clock $ UNIX2003实现黑客只是掩盖了更大的问题.

Your clock$UNIX2003 implementation hack is simply masking the larger issue.

您需要获取针对iOS Simulator SDK构建的该库的版本,以便在iOS Simulator中使用.

You need to get a version of that library built against the iOS Simulator SDK for use in the iOS Simulator.

这篇关于iPhone仿真器(链接器命令失败,退出代码为1(使用-v查看调用))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆