I have two very similar iPhone application projects open side by side, and in the Project Info Build tab of one, I have a bunch of GCC 4.2 option sections (in between Versioning 开发者_JAVA技巧and Interface Builder XIB Compiler - Options) in one of the projects but not the other.
I have checked all of the settings that I can find to make sure that they match up and that the correct Base SDK is selected, but I cannot figure out why this would not be showing in one project and not the other.
Anyone have any suggestions on what to check for?
Diff the pbxproj files in a text editor. Can't remember what the mistake was exactly but it happened to me once and I was able to fix the project file by diffing with a known-good version.
This is not quite right. It is not due to CODE_SIGN_IDENTITY. GCC 4.2 options appears after adding sources to "Groups & Files"->Target->"YourTargetName"->Compile Sources. The rule is simple: If "Target" has no sources yet, there is no GCC 4.2 options.
精彩评论