iOS Question [solved] Cannot Compile Release App (Unable to write data to the transport connection)

Discussion in 'iOS Questions' started by yonson, Mar 7, 2015.

  1. yonson

    yonson Active Member Licensed User

    Hi

    I am trying to build my release version of my app today, it is my first attempt. I've created a new key however the compilation fails with the following error:-

    Parsing code. 0.32
    Compiling code. 0.71
    Compiling layouts code. 0.01
    Building Xcode project 4.55
    Sending data to remote compiler. Error
    Communication error: Internal error: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

    Can you clarify the issue please?
    Thanks
    John
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    Please restart you internet(modem) or turn off and turn on device internet
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Do you still get this error? How long does it take until you see it?
     
  4. yonson

    yonson Active Member Licensed User

    yes, disconnected the connection, and have now tried it on a different network completely. Please note when I try to build the debug app its fine, its only when I want to build the release version. Any thoughts?
     
  5. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Do you uninstall app from iOS and then compile?
    I have think your device is swan :)
     
  6. yonson

    yonson Active Member Licensed User

    actually I tried to do exactly the same thing about a month ago, with a different (test) app, when building the debug version it was fine, when trying to make the release version I got this same error. I left it as I assumed it must have been a temporary problem on the server side.

    I've retried this morning:-

    1) uninstalled app
    2) cleaned project
    3) created new provisioning profile & distribution certificates

    My (limited) understanding is that this error message is the build server rejecting something, can you clarify why it would do this?
     
  7. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Ok.This problem not relate to remote host because you can test your project in debug state.
    Do you use proxy when release app?
     
  8. yonson

    yonson Active Member Licensed User

    As far as I'm aware I'm not changing anything between running the debug and doing the release.

    I've followed the tutorial on generating the release app:-

    http://www.b4x.com/android/forum/threads/app-publish-tutorial.46808/#post-289504

    I've just recreated the provisioning profile etc again for the live release,

    I change the 'paths configuration' keys folder from my development to release folder, then select to build the release version. Exactly as per the tutorial

    I really don't understand what is wrong?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    How long does it take until you see the error message?
     
  10. yonson

    yonson Active Member Licensed User

    Hi Erel
    here is the build notes from the last compile, it appears around 5 seconds after starting the build process:-

    Parsing code. 0.31
    Compiling code. 0.58
    Compiling layouts code. 0.01
    Building Xcode project 1.45
    Sending data to remote compiler. Error
    Communication error: Internal error: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

    One interesting aspect I have noticed. After doing this, I then get a different message about files already existing : -

    Building Xcode project Error
    The file 'C:\work\iyork\iOS\Objects\src\mapicon.png' already exists.

    I assume this is something to do with not having the correct overwrite rules in that directory. So, I go to the directory and manually delete the files. Do you think this has any relevance?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Can you send me the complete project by mail and also write your user id for the remote builder (erel@basic4ppc.com)?
     
  12. yonson

    yonson Active Member Licensed User

    thanks Erel sending it across now.
    Thanks for your help
     
  13. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Erel,If problem solved please notify us
     
  14. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    I can solve problem of course i think.
    If your output size is rather than 25 mb then cannot compile with mac server but with local mac can compile
     
  15. yonson

    yonson Active Member Licensed User

    Erel has increased the compile size to 40mb, this has fixed it. However, please note the process will timeout, so you need to very much increase this value in

    Tools -> IDE Options -> Configure Process Timeout

    Thanks for your help Erel
     
  16. yonson

    yonson Active Member Licensed User

    just a small note about a mistake I made when creating the release version, it saved the .ipa file into my 'files' folder. As a result the next time I created a version, the .ipa file was included as an asset file in the project(!). This doubled the size of the app unnecessarily and was a mistake on my part, so just a note to say make sure you save the ipa somewhere other than the files folder.

    Also interesting to note you can inspect the rc.dat file with any zip viewer software to check the contents.
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice