sharatha / skpsmtpmessage

Automatically exported from code.google.com/p/skpsmtpmessage
0 stars 0 forks source link

[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I retrieved the skpsmtpmessage project from 
http://github.com/kailoa/iphone-smtp
2. I build and deploy for OS 3.1.3 on real device
3. I enter the mail details (using smtp.gmail.com as the mail server) and 
click Send

What is the expected output? What do you see instead?

Application hangs.
Debug says:

[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: 
unrecognized selector sent to class 0xa004a5c0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '*** +[NSStream 
getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized 
selector sent to class'

What version of the product are you using? On what operating system?

I retrieved the skpsmtpmessage project from 
http://github.com/kailoa/iphone-smtp

on Leopard.

Please provide any additional information below.

It works fine on the simulator.

Thanks for any help!

Original issue reported on code.google.com by quentin....@gmail.com on 1 Apr 2010 at 1:28

GoogleCodeExporter commented 9 years ago
Ok i got the solution for this, the problem is some how the library is not able 
to find the 
getStreamsToHostNamed extended class. so you have to just comment the inclusion 
of header file 
"NSStream+SKPSMTPExtensions.h" and take the code from both 
"NSStream+SKPSMTPExtensions.h" and 
"NSStream+SKPSMTPExtensions.m" and put in the top of the file SKPSMTPMessage.m.

Check the attachment, i have used iphone sdk document version of 
getStreamsToHostNamed

Original comment by ashish....@gmail.com on 21 Apr 2010 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago
The solution provided by Ashish works.

Original comment by gautamra...@gmail.com on 7 Aug 2010 at 7:01

GoogleCodeExporter commented 9 years ago
Ashish you are the best of the best...i am very happy...It works and i had the 
same issue. THANKS man!!!

Original comment by vasilis....@gmail.com on 12 Sep 2010 at 4:36

GoogleCodeExporter commented 9 years ago
If i run this project, i just get a blank screen. What am i doing wrong?

Original comment by ulag62...@gmail.com on 13 Jan 2011 at 2:23

GoogleCodeExporter commented 9 years ago
i run the project in  both simulator and  device. i got the same following error
1.+[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: 
unrecognized selector sent to class 0x25922bc

2.  Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '+[NSStream     getStreamsToHostNamed:port:inputStream:outputStream:]: 
unrecognized selector sent to class 0x25922bc'

Original comment by jmlhossa...@gmail.com on 15 Mar 2011 at 11:04

GoogleCodeExporter commented 9 years ago
Same problem here.

Original comment by sto...@gmail.com on 21 Mar 2011 at 8:09

GoogleCodeExporter commented 9 years ago
it is working fine with ashish solution .

Original comment by j.narend...@gmail.com on 8 Aug 2011 at 10:28

GoogleCodeExporter commented 9 years ago
i'm able to install the app on device...but after filling all fields and 
clicking on send i'm getting OSStatus Error...please help me in the issue.

Original comment by chanuky...@gmail.com on 9 Feb 2012 at 5:24

GoogleCodeExporter commented 9 years ago
I get Command /xcode4.2ios5 
beta3/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with 
exit code 1
when i dragged ashishe's file into the project....anyone got a clou?

Original comment by ioanniss...@gmail.com on 19 Mar 2012 at 10:32