2 Replies Latest reply on Nov 14, 2012 9:51 AM by huntingtongis

    Code Violation Template

    mhanway
      Has anyone had an issue with the CodeViolationConfigSettings.m file on line 15 of the Code Violation Template.

      static NSDictionary *configDict = nil;

      with the error being - Cannot declare variable inside @interface or @protocol

      The OS is Lion with Xcode4 iOS SDK 5.0 and the ArcGIS SDK 2.1...Thanks, Mark
        • Re: Code Violation Template
          cclough
          In CodeViolationConfigSettings.m (CLasses\Configuration Settings), you have to move 'static NSDictionary *configDict = nil;' from within the @interface block to above it.  I'm not a developer, and this probably breaks some sort of scoping convention, but it does allow the project to build.
          • Re: Code Violation Template
            huntingtongis
            In CodeViolationConfigSettings.m (CLasses\Configuration Settings), you have to move 'static NSDictionary *configDict = nil;' from within the @interface block to above it.  I'm not a developer, and this probably breaks some sort of scoping convention, but it does allow the project to build.


            +1 thanks so much for the tip!