开发者

Objective-C pre-compilation error

开发者 https://www.devze.com 2023-01-12 11:48 出处:网络
I\'m compiling a big iPhone app and am getting 24 of the same error... cc1plus: note: obsolete option -I-

I'm compiling a big iPhone app and am getting 24 of the same error...

cc1plus: note: obsolete option -I- used, please use -iquote instead cc1: error: -I- specified twice

Thi开发者_Go百科s error is repeated 24 times for the same prefix header file. Any idea what's going on?

Thanks!


The prefix header is being included in 24 source files. The option -I- is causing the error in the prefix header and the error is repeated 24 times.


I ran across this error when I began using XCode 4. For me, it ended up being my Schemes in XCode. I was naming them something like "MyApp - Ad Hoc". I renamed the Scheme to be "MyApp_Ad_Hoc" instead, and it cleared this up. Hopefully, this will help some people.

0

精彩评论

暂无评论...
验证码 换一张
取 消