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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With