10

我一直在尝试解决这个问题一段时间。我尝试为模拟器构建的原因是为了在 appstore 中现在需要的 4 英寸视网膜显示屏上获取屏幕截图。我正在制作一个统一的应用程序,我从论坛中看到人们成功地制作了模拟器版本。

在为 iphone/ipad 进行常规构建时,我没有任何错误,但是打开我的项目(统一标记为模拟器)并尝试将其构建到模拟器失败并出现链接器错误(见下文)。很明显"iphonesimulator (SDK not found)" message in Architecture -> Base SDK selection list。尽管在检查首选项 -> 下载时,所有模拟器都已安装。我可以手动启动模拟器

我是 iphone/ipad 开发的初学者,特别是在 Xcode 中,我在论坛中搜索这个问题,但没有找到任何可以解决我的问题的东西。谁能指出我正确的方向?我应该尝试什么,我应该在哪里寻找错误?

谢谢!

ld: warning: directory not found for option '-L"/Users/mirko/Dropbox/Unity'
ld: warning: directory not found for option '-LProjects/Project3D'
ld: warning: directory not found for option '-LProject/Project3D/Builds/iOS/S3D"'
ld: warning: directory not found for option '-L"/Users/mirko/Dropbox/Unity'
ld: warning: directory not found for option '-LProjects/Project3D'
ld: warning: directory not found for option '-LProject/Project3D/Builds/iOS/S3D/Libraries"'
0  0x10a87b098  __assert_rtn + 144
1  0x10a87e431  mach_o::relocatable::Section<x86>::addRelocFixup(mach_o::relocatable::Parser<x86>&, macho_relocation_info<Pointer32<LittleEndian> > const*) + 1781
2  0x10a88e636  mach_o::relocatable::Section<x86>::makeFixups(mach_o::relocatable::Parser<x86>&, mach_o::relocatable::Parser<x86>::CFI_CU_InfoArrays const&) + 90
3  0x10a88aaad  mach_o::relocatable::Parser<x86>::parse(mach_o::relocatable::ParserOptions const&) + 1433
4  0x10a8820c3  mach_o::relocatable::Parser<x86>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 313
5  0x10a87faa1  mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 149
6  0x10a8a033a  archive::File<x86>::makeObjectFileForMember(archive::File<x86>::Entry const*) const + 794
7  0x10a89fb50  archive::File<x86>::forEachAtom(ld::File::AtomHandler&) const + 198
8  0x10a8b176c  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler&) + 420
9  0x10a8ba884  ld::tool::Resolver::resolve() + 44
10  0x10a87b380  main + 370
11  0x10a86ccd4  start + 52
A linker snapshot was created at:
    /tmp/Project3DSystem-2013-02-20-134511.ld-snapshot
ld: Assertion failed: (src.atom != NULL), function addRelocFixup, file /SourceCache/ld64/ld64-136/src/ld/parsers/macho_relocatable_file.cpp, line 5468.
4

3 回答 3

0

Check you deployment target and set it to 4.3 or higher. Also see Objective C/C++ compiler and set it Apple LLVm Compiler 5.0 (xcode 5) .

After this check you base SDK in build settings and change make sure it is set iOS Latest 7.0 or whatever latest SDk you have.

You have to check deployment target both in target and project icon in prject settings pane.

于 2014-01-07T13:06:18.557 回答
0

我的项目中有类似的问题,但我没有使用 Unity3D。我找到了一些与此相关的材料:

是的,我第一次在模拟器上运行游戏时遇到了这个问题。最后我发现SDK版本必须是一样的。如果你在unity3d中选择了4.1,那么你必须在4.1版本的模拟器上运行它。它给你任何帮助吗?

原文链接:iphonesimulator (SDK not found)

于 2013-06-25T00:47:11.663 回答
-1

除非您已经这样做,否则请尝试重新安装 xcode。

于 2013-06-10T23:27:03.620 回答