开发者

NSTask Undecalared!

开发者 https://www.devze.com 2023-02-15 01:14 出处:网络
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 declarat

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

精彩评论

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