The*_*ist 7 objective-c ios xcode4.4
从Xcode 4.3升级到Xcode 4.4后,我开始在构建我的iPhone应用程序时遇到以下错误:
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)
内存地址和数字对我来说没有任何意义,但它们在清理和重建过程中保持一致.我不清楚如何找到他们可能引用的内容.
代码确实并且仍然在XCode 4.3中编译.
有没有人知道如何追踪导致此错误的原因?
您可以在链接映射文件中查看所有符号(包括全局变量)的大小:
-map -Xlinker -/path/to/linkmapfile.txt。它位于项目的 DerivedData 文件夹中的某个位置。所以也许这有助于缩小问题范围。