<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi, jordan:<br>After I switch to checker -271 and xcode 4.6+sdk6.1, the same error still exist,</div><div>do you have other ideas?<br>btw, when I use the following command :</div><div><!--StartFragment --><div>
/data/checker/scan-build -o report --use-cc=$clang_path $xcode_path -workspace mtt.xcworkspace -scheme mttlite -configuration $config -sdk $sdk
</div>There is no any error ,but only 10 bugs ,is it valid scan command ?<br>Thanks for your <span>Follow up and reply.</span><br></div><div>--<br><div><div> BRs</div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div></div><div id="divNeteaseMailCard"></div><div></div>At 2013-03-21 09:25:26,"Jordan Rose" <jordan_rose@apple.com> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>Hello, Howard. One issue that might be related is that scan-build can't use a PCH (precompiled header) file with Xcode 4.5. Are these constants are only declared in your PCH?</div><div><br></div><div>The good news: as of checker-271, scan-build takes advantage of new hooks in Xcode 4.6 to use PCH, which should fix your issue. Can you update your Xcode and try again?</div><div><br></div><div>Jordan</div><div><br></div><br><div><div>On Mar 20, 2013, at 0:21 , Α軶 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-family: arial; font-size: 14px;"><div>Dear ALL:</div><div>When I use the scan-build from Clang checker-272, it gets the following errors:</div><div> </div><div>
<em>/Users/mqq/hudson/clang_browser_iphone/Classes/browser/startpage/UIQuickLinkView.m:773:45: error: use of undeclared identifier 'APP_INSERT_FRONT'<br>        NSInteger action = isInsertBefore ? APP_INSERT_FRONT : APP_INSERT_BEHIND;<br>                                            ^<br>/Users/mqq/hudson/clang_browser_iphone/Classes/browser/startpage/UIQuickLinkView.m:773:64: error: use of undeclared identifier 'APP_INSERT_BEHIND'<br>        NSInteger action = isInsertBefore ? APP_INSERT_FRONT : APP_INSERT_BEHIND;
</em></div><div><em></em> </div><div><strong>The above file is from Dependent target , so ,is it any wrong config in Xcode Project ?</strong></div><div>At the same time , we get no error when we use build and analyze memu from Xcode .</div><div>If the xcode project is OK, any other reason cause the scan fail?</div><div>btw ,the xcode is 4.5 and the sdk is 6.0<br>Thanks for you help.<br></div><div>BRs
</div><div><div>Howard Ling (Α軶)</div>
<div>*****************************************************</div>
<div>Cell Phone:13428984893</div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div>*****************************************************</div></div><div><br> </div><br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>