Linker error in Xcode 4.4
Upon upgrading from Xcode 4.3 to Xcode 4.4, I started to get the following error on building my iPhone app:
ld: section __objc_const (address=0x0010C720, size=7265990088) would make the output executable exceed available address range for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
The memory address and number do not mean anything to me, but they remain consistent across clean and rebuilds. It is not clear to me how to find what they might be referencing.
The code did and still does compile in XCode 4.3.
Does anyone have any idea how I might track down what's causing this error?
I had the very same error. Luckily, I could recall the moment when it appeared, rolled back and compared the revisions. It was a category with static methods on Google Analytics GAI
class. I have no idea why it happened, since other categories in the project work just fine, but hope it helps someone too.
You can see the sizes of all symbols (including global variables) in a Link Map File :
-map -Xlinker -/path/to/linkmapfile.txt
. It is somewhere in the DerivedData folder of your project. So perhaps this helps to narrow down the problem.
链接地址: http://www.djcxy.com/p/11092.html上一篇: GPUDirect RDMA从GPU传输到远程主机
下一篇: Xcode 4.4中的链接器错误