1.3.6 tvOS Export Crash

Discussion in 'Buildbox General Discussion' started by cioccaapps, Feb 27, 2016.

Tags:
  1. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    Hello, after attempting to export my tvOS game with BB 1.3.6, I get a crash at this line: cocos2d::CCApplication::sharedApplication()->run();

    I have tried adding this line "[glView lockOpenGLContext];" above it, but the build still fails. Any ideas on a fix for this? Thanks

    Screen Shot 2016-02-27 at 4.37.40 PM.png
     
  2. wesam_badr

    wesam_badr Miniboss Boxer

    Joined:
    Oct 10, 2015
    Messages:
    1,065
    Likes Received:
    479
    no help i think we need to wait for a new update for the software this release comes with new bugs instead of fixing the old ones
     
  3. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    @ciaccaaps please send email to support@buildbox.com and include all details. I tested this myself before releasing and was able to build and test in Xcode 7.
     
  4. Shawh

    Shawh Boxer

    Joined:
    Dec 14, 2015
    Messages:
    82
    Likes Received:
    41
    @cioccaapps Have you tried creating a new provisioning profile under a new bundle ID? I think this happened to me too, until I did this.
     
  5. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    I will try right now @Shawh
     
  6. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    It builds, but it crashes at the same line upon running the app.
     
  7. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    I need more info on why you are adding that line, it is not needed with tvOS on BETA4. You should not need to add any code.
     
  8. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    @Andy I searched around for a fix and that is what people recommended.
     
  9. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    What I'm getting at is: What is the error or issue preventing tvOS build from working directly after export? In as much detail as you can.
     
  10. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    Ok @Andy , so as soon as the tvOS version builds and runs within Xcode 7.2.1, the simulator opens and then I immediately receive an error saying that the app could not attach. Once it runs again the app builds and then the app crashes at the line: cocos2d::CCApplication::sharedApplication()->run();

    That is about it for the error.
     
  11. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    These attach errors are typically a local Xcode issue. Please check this:

    try resetting content and settings of the simulator:
    https://www.dropbox.com/s/2000wtw2wgmb1pc/Screenshot 2016-02-22 12.28.07.png?dl=0
    just do this for the tvOS simulator

    you can read some background here that may help further:
    http://stackoverflow.com/questions/11535844/failed-to-attach-to-process-id-xcode

    @seanjonathanconnor had a similar problem recently with the iOS simulators... but I think it just started working for him. You might want to do a clean reboot and export after resetting the simulator.
     
  12. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    @Andy I tried the tvOS build on another computer, this time in Xcode 7.1 and it seems the issue has something to do with a missing asset. Below is the error I received
    Screen Shot 2016-02-29 at 4.09.30 PM.png
     
  13. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Sean Buildbox likes this.
  14. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    @Andy I just don't get it. I have tried everything in both versions of Xcode.
     
  15. nqfr

    nqfr Boxer

    Joined:
    Dec 4, 2015
    Messages:
    1
    Likes Received:
    0
    Hi, I've one project running perfectly in tvOS and published in App Store.
    No issues reported if you put all pieces in the right place... Xcode has a lot of libraries you must download for each release of iOS, tvOS or Mac OS, so depending on your platform, you must download at least the right simulator(s) to help you to develop and test your app.
    Please take a look on requisites for your Mac, Apple TV and be sure to follow each one before to start new projects and crash without a clear reason.
     

Share This Page