Can't analyze Objective-C .m and .h file


(Brian Haret) #1

I’m evaluating sonarsource and trying to analyze some Objective-C code. Specifically just one .m and .h file. When doing this I get:

ERROR: Property “” was not specified.

The only way to get an accurate analysis of your C/C++/Objective-C project is by using the SonarSource build-wrapper and by setting this property.

If for any reason, the use of the build-wrapper is not possible on your project, you can bypass it with the help of the “” property. By using that property, you’ll switch to an “at best” mode that could result in false-positives and false-negatives.

(G Ann Campbell) #2


It’s not clear what your question is. Here are the docs in case you’re looking for help getting started with the Build Wrapper.


(Brian Haret) #3

That essentially answers my question. I was able to analyze Swift code without additional steps and was unaware that added config and build eaves dropping was required. I didn’t necessarily want to analyze an entire project. Is there a way to limit files being analyzed?

(G Ann Campbell) #4


Try this:


(Brian Haret) #5

Thanks Ann.