开发者

NSTask Undecalared!

i am integrating ASIHTTPRequest in 开发者_运维技巧 my app and included some supported frameworks found in XCode but in one file of this API i am getting an error "NSTask undeclared" in this declaration... NSTask *task = [[[NSTask alloc] init] autorelease]; any suggestions??

Thanks...


NSTask is not available on iOS. It looks like you’ve inadvertently included some files from ASIHTTPRequest that are meant for Mac OS X only. Remove those files from your project — from what I see, only Classes/Tests/ASIDataCompressorTests.m uses NSTask — and the ‘NSTask undeclared’ error shouldn’t happen again.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜