Hi Rahul! Welcome to the SonarSource Community!
Can you give some more information?
- Did you set
sonar.cfamily.build-wrapper-output=sonarq
in your “sonar-project.properties” file? - Are you running the build-wrapper-macosx-x86 command within your project folder where your .xcodeproj file lives?
- What version of SonarQube and Xcode are you using?
- Have you been able to perform a successful sonar scan on an Objective-C project before?
- Please show the entire log output when you run the
/opt/sonarqube/bin/build-wrapper-macosx-x86 --out-dir sonarq xcodebuild clean build
command. - Please show the contents of “build-wrapper-dump.json” and “build-wrapper.log” files from your “sonarq” folder.
This other post may have a similar problem/solution for you: Scanning Objc code failed
Joe