divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CorePlot 1.1 and 1.2 won't build under CocoaPods 0.17.2+ due to dtrace invocation error. #532

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First off... yup, I know that the behavior is correlated with CocoaPods and not 
CorePlot; I opened a CocoaPods issue first: 
https://github.com/CocoaPods/CocoaPods/issues/1020 .  I'm opening this as a 
followup to comments on that thread.  Feel free to NAB this, but would 
appreciate guidance.  Thanks in advance for your help.

What steps will reproduce the problem?
1. Install CocoaPods 0.17.2+
2. Add CorePlot to your Podfile
3. Generate a project and attempt to build

What is the expected output? What do you see instead?

Expect a successful build.  Instead, I see the following error (it seems the 
"-w -Xanalyzer -analyzer-disable-checker" bits are the problem):

    /usr/sbin/dtrace -h -w -Xanalyzer -analyzer-disable-checker -s CorePlot/framework/TestResources/CorePlotProbes.d -o /Users/justin/Library/Developer/Xcode/DerivedData/Whistle-cqxdphceivongsgthjorjdipbjrk/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods.build/DerivedSources/CorePlotProbes.h

Usage: dtrace [-aACeFHlqSvVwZ] [-arch i386|x86_64] [-b bufsz] [-c cmd] [-D name 
[-I path] [-L path] [-o output] [-p pid] [-s script]    [-x opt [-P provider [  
[-m [ provider: ] module [  [-f [[ provider: ] module: ] func [ [-n [[[ 
provider: ] module: ] func: ] name [    [-i probe-id [[ predicate ] action ]]   
predicate -> '/' D-expression '/'      action -> '{' D-statements '}'   -arch 
Generate programs and Mach-O files for the specified architecture -a  claim 
anonymous tracing state   -A  generate plist(5) entries for anonymous tracing 
-b  set trace buffer size   -c  run specified command and exit upon its 
completion  -C  run cpp(1) preprocessor on script files -D  define symbol when 
invoking preprocessor    -e  exit after compiling request but prior to enabling 
probes   -f  enable or list probes matching the specified function name  -F  
coalesce trace output by function   -h  generate a header file with definitions 
for static probes   -H  print included files when invoking preprocessor -i  
enable or list probes matching the specified probe id   -I  add include 
directory to preprocessor search path   -l  list probes matching specified 
criteria -L  add library directory to library search path    -m  enable or list 
probes matching the specified module name    -n  enable or list probes matching 
the specified probe name -o  set output file -p  grab specified process-ID and 
cache its symbol tables   -P  enable or list probes matching the specified 
provider name  -q  set quiet mode (only output explicitly traced data) -s  
enable or list probes according to the specified D script   -S  print D 
compiler intermediate code  -U  undefine symbol when invoking preprocessor  -v  
set verbose mode (report stability attributes, arguments)   -V  report DTrace 
API version   -w  permit destructive actions  -x  enable or modify compiler and 
tracing options   -Z  permit probe descriptions that match zero probesCommand 
/usr/sbin/dtrace failed with exit code 2

What version of the product are you using? On what operating system?
* CorePlot 1.1 and 1.2
* CocoaPods 0.17.2 and above
* XCode 4.6.2, targeting iOS 6.1
* OSX 10.8.3

Please provide any additional information below.

Issue opened in the CocoaPods issue tracker, here: 
https://github.com/CocoaPods/CocoaPods/issues/1020 .  

Original issue reported on code.google.com by jrmid...@gmail.com on 6 May 2013 at 4:58

GoogleCodeExporter commented 9 years ago
This is a CocoaPods problem. As noted above, dtrace is being invoked with 
invalid command line switches.

Original comment by eskr...@mac.com on 6 May 2013 at 11:28