Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2008, 12:11 PM   #1 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 22
Default putpkt: write failed: Broken pipe.

Ever seen this message before? "putpkt: write failed: Broken pipe."

I haven't had much luck with the submission process. I have made two versions of my game (one Lite version and one full version). Both were submitted one week ago. On Tuesday, I got a reply back that I needed to change the Lite version and that the full version crashed. This was strange, because both programs were tested before I sent them to the App Store and there's only one line of code that differs between them.

I resubmitted both programs on Wednesday and received an answer yesterday. Both program crashed this time. I was really careful when compiling and I made sure to check the build results as suggested by the documentation.

I then saw that the program sometimes pointed to 2.2 SDK and sometimes to 2.1 SDK, so I decided to start over with a new project and copy all the code to make sure I didn't have any discrepancies.

This time, everything made sense. Everything, including Frameworks, pointed to 2.2 and not 2.1. But then I got some really strange errors. In order to test that the distribution processed worked, I decided to make an ad hoc version of the program first. I then got this error:

putpkt: write failed: Broken pipe.

After some tweaking here and there, I finally changed the name of the game from "RaS" to "RollaStone". Then, it suddenly worked. I tried again to change it back to "RaS" and it failed. The Lite version is at the same time called "RaS Lite" and it works ok. I also tried to change the name to "Roll a Stone", but then it crashes again.

Has anyone seen this error message before?
wynodir is offline   Reply With Quote
Old 11-30-2008, 04:14 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 193
Default

i've seen this message when i accidently unplug my iPhone while I am installing a program from XCode.... after I do this, the message appears everytime I try to build and run..

To fix it, I usually have to delete the program from the iphone, restart the iphone, and probably do a clean all targets from xcode...

hope this helps
Ed99 is offline   Reply With Quote
Old 12-01-2008, 05:48 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 356
Default

same problem. happesn randomly, no solution
erotsppa is offline   Reply With Quote
Old 01-10-2009, 07:19 AM   #4 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 8
Default

This happens for unsigned code when the ldid hasn't worked.. But obviously you're not putting it on an jailbroken.
domness is offline   Reply With Quote
Old 03-31-2009, 04:13 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 32
Default

Quote:
Originally Posted by wynodir View Post
Ever seen this message before? "putpkt: write failed: Broken pipe."

I haven't had much luck with the submission process. I have made two versions of my game (one Lite version and one full version). Both were submitted one week ago. On Tuesday, I got a reply back that I needed to change the Lite version and that the full version crashed. This was strange, because both programs were tested before I sent them to the App Store and there's only one line of code that differs between them.

I resubmitted both programs on Wednesday and received an answer yesterday. Both program crashed this time. I was really careful when compiling and I made sure to check the build results as suggested by the documentation.

I then saw that the program sometimes pointed to 2.2 SDK and sometimes to 2.1 SDK, so I decided to start over with a new project and copy all the code to make sure I didn't have any discrepancies.

This time, everything made sense. Everything, including Frameworks, pointed to 2.2 and not 2.1. But then I got some really strange errors. In order to test that the distribution processed worked, I decided to make an ad hoc version of the program first. I then got this error:

putpkt: write failed: Broken pipe.

After some tweaking here and there, I finally changed the name of the game from "RaS" to "RollaStone". Then, it suddenly worked. I tried again to change it back to "RaS" and it failed. The Lite version is at the same time called "RaS Lite" and it works ok. I also tried to change the name to "Roll a Stone", but then it crashes again.

Has anyone seen this error message before?
Hey wynodir...Did you manage to solve this ? I'm having the same problem...
ale_brazil is offline   Reply With Quote
Old 06-04-2009, 10:51 AM   #6 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 70
Default

H Guys

Did anyone find a fix for this problem? for myself it started right after my Distribution certificate expired. I fixed all the certificate problems, then the app work in both Debug and ad-hoc configs, then all of a sudden started crashing each time i tried teh ad-hoc config, it installs fine but when the app start i get the : putpkt: write failed: Broken pipe. error

I cannot change the name of the app, as my app is already on app store and this is an update that i am testing out.

Thank you for your help
hakimny is offline   Reply With Quote
Old 06-22-2009, 05:52 PM   #7 (permalink)
Registered Member
 
Join Date: Apr 2008
Location: Houston, Texas
Posts: 10
Default Resolution (for me)

I was having this same problem, and the following solution worked for me. Some subsets of it did not work, but there may be less that is required.

a) quit Xcode (and therefor the GDB it is running)
b) unplug device
c) delete app from device (hold icon till x appears)
d) turn off device
e) turn on device
f) plug in device (if itunes wants to sync, let it finish)
g) launch Xcode

worked for me
bshirley is offline   Reply With Quote
Old 09-11-2009, 03:03 PM   #8 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1
Default Reliable solution

Solved! I have been able to reliably avoid this error completely:

1. Before doing a new build, always stop the debugger first.
2. Then stop the app on the device.
3. Only after doing the above 2 steps, then build and go.

That’s all you need. (No need to restart Xcode, restart device, delete app from device, etc.)

Forrest

PS. This is a bug in XCode.
Forrest is offline   Reply With Quote
Old 09-26-2009, 03:28 PM   #9 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 4
Default @'putpkt: write failed':

I had this issue while using internet at a public library.

They have a TOS screen you need to accept before using the internet. Since I had done it for my mac, but not for the iPhone, I had a tough time figuring out the reason.


Had a look at the console at the time of the crash and realized that it is some issue with the internet connection.

Accepted the TOS on the iPhone (through Safari) and joined the library network.

--> problem solved!!!!

Hope this helps!

(I wish I had taken care of notifying the user about lack of network connectivity, I guess thats the first thing I'll do for the app now

Hope others find it helpful!
calvinBhai is offline   Reply With Quote
Old 10-07-2009, 07:14 AM   #10 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 8
Default what is TOS? please describe

Quote:
Originally Posted by calvinBhai View Post
I had this issue while using internet at a public library.

They have a TOS screen you need to accept before using the internet. Since I had done it for my mac, but not for the iPhone, I had a tough time figuring out the reason.


Had a look at the console at the time of the crash and realized that it is some issue with the internet connection.

Accepted the TOS on the iPhone (through Safari) and joined the library network.

--> problem solved!!!!

Hope this helps!

(I wish I had taken care of notifying the user about lack of network connectivity, I guess thats the first thing I'll do for the app now

Hope others find it helpful!
mhds65 is offline   Reply With Quote
Old 10-07-2009, 10:52 AM   #11 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 4
Post

Quote:
Originally Posted by mhds65 View Post


ToS = Terms of Service

(usually when you access public free networks, you'll come across such ToS landing pages before you can proceed surfing the internet)
calvinBhai is offline   Reply With Quote
Old 10-08-2009, 08:28 AM   #12 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 8
Default How do i this?(Accept TOS)

How do i this?(Accept TOS)? when I open safari i didn't see any acceptation page! I exam all of ablve step, but didn't solve
mhds65 is offline   Reply With Quote
Old 10-08-2009, 09:34 AM   #13 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 4
Default

Quote:
Originally Posted by mhds65 View Post
How do i this?(Accept TOS)? when I open safari i didn't see any acceptation page! I exam all of ablve step, but didn't solve
If you are able to access internet on your device (if you can go to a website on safari) then you wont come across a ToS screen.

My issue was very specific to my location and type of internet access. If you are testing it at home/office (with internet) then you are facing the problem for some other reason.
calvinBhai is offline   Reply With Quote
Old 10-10-2009, 04:45 AM   #14 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 8
Default what is solution

Quote:
Originally Posted by Forrest View Post
Solved! I have been able to reliably avoid this error completely:

1. Before doing a new build, always stop the debugger first.
2. Then stop the app on the device.
3. Only after doing the above 2 steps, then build and go.

That’s all you need. (No need to restart Xcode, restart device, delete app from device, etc.)

Forrest

PS. This is a bug in XCode.






your solution and upper solution didn't work, i can't install my with distribution or debugger, what i must do?
mhds65 is offline   Reply With Quote
Old 03-23-2011, 12:45 AM   #15 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 1
Default It worked!!

Thank you guys for this forum!
horusapolo is offline   Reply With Quote
Old 04-04-2011, 09:01 PM   #16 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Boston Ma. USA
Posts: 113
Default

Quote:
Originally Posted by wynodir View Post
Ever seen this message before? "putpkt: write failed: Broken pipe."

I haven't had much luck with the submission process. I have made two versions of my game (one Lite version and one full version). Both were submitted one week ago. On Tuesday, I got a reply back that I needed to change the Lite version and that the full version crashed. This was strange, because both programs were tested before I sent them to the App Store and there's only one line of code that differs between them.

I resubmitted both programs on Wednesday and received an answer yesterday. Both program crashed this time. I was really careful when compiling and I made sure to check the build results as suggested by the documentation.

I then saw that the program sometimes pointed to 2.2 SDK and sometimes to 2.1 SDK, so I decided to start over with a new project and copy all the code to make sure I didn't have any discrepancies.

This time, everything made sense. Everything, including Frameworks, pointed to 2.2 and not 2.1. But then I got some really strange errors. In order to test that the distribution processed worked, I decided to make an ad hoc version of the program first. I then got this error:

putpkt: write failed: Broken pipe.

After some tweaking here and there, I finally changed the name of the game from "RaS" to "RollaStone". Then, it suddenly worked. I tried again to change it back to "RaS" and it failed. The Lite version is at the same time called "RaS Lite" and it works ok. I also tried to change the name to "Roll a Stone", but then it crashes again.

Has anyone seen this error message before?
the only time I see this is when I forget my app is debugging on the iPhone I unplugged it. other then that I never had a problem. The other thing is when strange error happens, I found it helpful to do a clean of the project and reset the simulator.
dickthedev is offline   Reply With Quote
Old 05-04-2011, 09:44 AM   #17 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 2
Default

This is also tend to happen when you are using a defined function which haven't been defined yet.

Like
#define DEGREES( radians ) ( radians / M_PI * 180 )
#define RADIANS( degrees ) ( degrees * M_PI / 180 )

If you forget to define these but you are using them, you'll get broken pipe errors too
KingIsulgard is offline   Reply With Quote
Old 06-07-2011, 02:32 PM   #18 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: Cedar Falls, IA
Posts: 4
Default another reason

Quote:
Originally Posted by KingIsulgard View Post
This is also tend to happen when you are using a defined function which haven't been defined yet.
Another reason this can happen is from using similar parameter names.

e.g. something like this:

-(void)gotoPageNumber: (int)pageNum
-(void)dropPageOut: (int)pageNumber

This does not seem to be a problem until you start debugging, and you run into problems.
brookshanes is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 157,858
Threads: 88,915
Posts: 379,298
Top Poster: BrianSlick (7,072)
Welcome to our newest member, jimmyallstar101
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:49 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0