Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone发布生成内存错误_Iphone_Xcode_Iphone Sdk 3.0_Xcodebuild - Fatal编程技术网

iPhone发布生成内存错误

iPhone发布生成内存错误,iphone,xcode,iphone-sdk-3.0,xcodebuild,Iphone,Xcode,Iphone Sdk 3.0,Xcodebuild,当我尝试构建我的应用程序的发布版本时,会出现此错误。它会对一个相当大的文件抛出一个错误,但这个文件的大小不接近400+MB(以KBs为单位) 我有3GB的可用ram(6GB中有3GB),CPU容量充足,硬盘上有50GB的可用空间。是什么导致了这个问题 我发现了有关该错误的一些附加信息: cc1obj(19764) malloc: *** mmap(size=455630848) failed (error code=12) *** error: can't allocate region ***

当我尝试构建我的应用程序的发布版本时,会出现此错误。它会对一个相当大的文件抛出一个错误,但这个文件的大小不接近400+MB(以KBs为单位)

我有3GB的可用ram(6GB中有3GB),CPU容量充足,硬盘上有50GB的可用空间。是什么导致了这个问题

我发现了有关该错误的一些附加信息:

cc1obj(19764) malloc: *** mmap(size=455630848) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

cc1obj: out of memory allocating 455627472 bytes after a total of 0 bytes
{standard input}:unknown:Undefined local symbol L_objc_msgSendSuper2$stub
{standard input}:unknown:Undefined local symbol L_objc_msgSend$stub
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_SUP_REFS_$_0
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_26
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_23
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_25
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_5
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_2
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_19
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_16
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_15
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_20
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_5
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_2
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_21
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_24
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_22
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_11
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_4
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_12
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_13
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_14
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_18
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_17
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_10
Command /Developer3.1Final/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
以下是我找到的有关错误的更多信息:

cc1obj(19764) malloc: *** mmap(size=455630848) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

cc1obj: out of memory allocating 455627472 bytes after a total of 0 bytes
{standard input}:unknown:Undefined local symbol L_objc_msgSendSuper2$stub
{standard input}:unknown:Undefined local symbol L_objc_msgSend$stub
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_SUP_REFS_$_0
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_26
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_23
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_25
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_5
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_2
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_19
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_16
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_15
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_20
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_5
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_2
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_21
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_24
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_22
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_11
{standard input}:unknown:Undefined local symbol L_OBJC_CLASSLIST_REFERENCES_$_4
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_12
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_13
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_14
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_18
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_17
{standard input}:unknown:Undefined local symbol L_OBJC_SELECTOR_REFERENCES_10
Command /Developer3.1Final/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

NM,没有看到是cc2obj死了。

如果这是在实际构建过程中,那么我猜你的Mac需要重新启动或重新安装Xcode。编译时不需要那么多RAM,所以它是递归的或类似的。除非gcc有什么问题,否则我怀疑您是否能编写一些代码来导致这种情况。

我已经看到了这一点,它不是一个实际的内存错误

现在的情况是,您的Xcode目标构建设置为release或debug,而“优化级别”的特定设置设置为Fast、faster或faster

似乎有一个错误在那里的某个地方,设置为无,或尝试操作系统,或O3(我不认为最快的是影响)

这很可能会解决一些人遇到的问题。当然,先试试“无”。。。这将证实这是发生在某人身上的事情,看到这一点

我可以肯定地说,McFragma肯定有这个问题,因为他/她描述了从调试到发布的更改,这导致了它(调试已设置为无),而发布设置为其他内容。。。如果是这样的话。。。当然,这是特定的构建设置