éç解æãã¼ã«Clang
æè¿ãéçºä¸ã®ã¢ããªã使ã£ã¦ããã¨ããè½ã¡ãããã«ãªã£ãã®ã§ãéç解æãã¼ã«ã試ãã¦ã¿ã¾ãããããã£ã¨å
¥ãããªã¨æã£ãã®ã§ãããæããããè²ã
ã¯ã¾ã£ãã®ã§ã¾ã¨ãã¦ããã¾ãã
ã¤ã³ã¹ãã¼ã«ããå®è¡ã¾ã§
1. LLVM/Clang Static Analyzerããææ°ç(checker-0.202.tar.bz2)ãåå¾ãã¾ãã
2. é©å½ãªå ´æã«ç½®ãã¦ãã¹ãéãã¾ãã
mv checker-0.202 /usr/local/checker export PATH=$PATH:/usr/local/checker
3. å®è¡ãã¾ãã
cd iPhoneProjectDir scan-build --view xcodebuild
ã¨ãããã§ã¨ã©ã¼ãããã¤ãã§ã¾ããã
arm-apple-darwin9-gcc-4.0.1
arm-apple-darwin9-gcc-4.0.1ããªãã¨ããã¨ã©ã¼ãåºãã®ã§ãªã³ã¯ä½æã
ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 /Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 scan-build --view xcodebuild
CodeSign error
次ã«CodeSign errorãåºãã®ã§ããã解決æ¹æ³ãè¦ã¤ãããã
è²ã
ããã£ã¦ä¸è¨ã®ããã«ããã¨ä¸æãå®è¡ã§ãã¾ããã
ããã¸ã§ã¯ãã®æ å ±
- å ¨ã¦ã®æ§æã§ã³ã¼ãèåããDon't Code Signãã«å¤æ´
- ã¯ãªã¼ã³ãã¦ãã¢ã¯ãã£ãã¿ã¼ã²ããããDebugãã«å¤æ´
ããã¸ã§ã¯ãã®æ
å ±ï¼ä¸è¬
- ãã¹ã¦ã®æ§æã®ãã¼ã¹SDKããSimulator-iPhoneOS2.2.1ãã«å¤æ´
ï¼Xcodeã®å·¦ä¸ã®ã»ã¬ã¯ãããã¯ã¹ã§ãSimulator XXX (ããã¸ã§ã¯ãè¨å®)ã¨ãªã£ã¦ããã°OKï¼
ã¾ã³ãããã»ã¹
ã³ã³ãã¤ã«ãçµäºãã¦ãhttp://127.0.0.1:8181ã«ã¢ã¯ã»ã¹ããã¨çµæãè¦ããã¨è¡¨ç¤ºããããããµã¤ãã«ã¢ã¯ã»ã¹ã§ãããã§ãps -ef | grep scan ã§æ®ã£ã¦ããããã»ã¹ãå
¨ã¦killãã¦ããå度å®è¡ããã¨ç¡äºã«é²è¦§ã§ãã¾ããã
çµæ
10件ã»ã©ãªã¼ã¯ãè¦ã¤ãã£ãã®ã§å
¨ã¦ä¿®æ£ã
Instrumentsã¨åããã¦å¤§åãªã¼ã¯ãæ½°ãã¾ããã
Clang便å©ï¼
追è¨ï¼
iPhone3.0ã®ç°å¢ã§å®è¡ããã¨ã³ã³ãã¤ã«ã§ã¨ã©ã¼ã«ãªã£ã¦ããããã§ä¸æãå®è¡ã§ããã
gccã®ãã¼ã¸ã§ã³ããªã..