octo-technology/sonar-objective-c

xctool failed with error code:1

AllenLii opened this issue · 7 comments

OS X Yosemite
Xcode 6.1
xctool 0.2.3
SonarQube 4.5.4
Plugin 0.4.0

run-sonar.sh -v:
...

** CLEAN SUCCEEDED ** (1880 ms)

  • returnValue=0
  • set +x
  • xctool -project NotifyMe.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme NotifyMe -reporter json-compilation-database:compile_commands.json build
  • returnValue=1
  • set +x
    ERROR - Command 'xctool -project NotifyMe.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme NotifyMe -reporter json-compilation-database:compile_commands.json build' failed with error code: 1
cyupa commented

If you are using Cocoapods, please run a pod install first and then run-sonar.sh

same issue with

Xcode 7.2
Build version 7C68

same issue and already do pod install
error still there ~

I have same problem now.
Is there any way to resolve this?
I've installed pod and my XCode version is 7.3

Hi, I'm having the same issue here Xcode 7.3.1. Anyone got it to work?

have the same issue.No one kowns the solution?

I had this problem and I fixed it adding the workspace to the sonar properties file.

sonar.objectivec.workspace=MyApp.xcworkspace
sonar.objectivec.project=MyApp.xcodeproj
sonar.objectivec.appScheme=MyApp