Mac/OSX Apps Crash with Xcode 7.1

Discussion in 'Technical Discussion' started by dmmcmah, Dec 4, 2015.

Tags:
  1. dmmcmah

    dmmcmah Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    103
    Likes Received:
    20
    I am playing around with exporting Buidbox games to Xcode 7.1. No matter what game I use it crashes here:

    cocos2d::CCApplication::sharedApplication()->run();

    This happens even using the sample buildbox games without any modification of the game. It says "EXC_BAD_ACCESS".
    There is also these messages:

    warning: could not load any Objective-C class information from the dyld shared cache.

    They load without crashing if I export from Buildbox 1.3.5, but the graphics are ruined they look embossed.
     
  2. darren

    darren Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    134
    Likes Received:
    58
    you should be using Xcode 6.4
     
  3. dmmcmah

    dmmcmah Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    103
    Likes Received:
    20
    Same result using Xcode 6.4.
     
  4. darren

    darren Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    134
    Likes Received:
    58
    that's trying to access an asset that is not loaded into memory. i recommend trying to create a fresh, brand new simple game (as a test/practice) and not the sample build box game, that way you can rule out if the sample game is the weak link
     
  5. dmmcmah

    dmmcmah Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    103
    Likes Received:
    20
    Yeah I will try that - but it also happens with projects I have made (but that are full blown games). It only happens with the Mac app, the iOS and tvOS versions work perfectly.
     
  6. darren

    darren Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    134
    Likes Received:
    58
    ah! i see, you could try emailing support support@buildbox.com
     
  7. dmmcmah

    dmmcmah Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    103
    Likes Received:
    20
    Figured out what the problem is. Appears to be related to El Capitan. This is the fix in case anyone else is trying to build an OSX game using El Capitan.

    Added to code:

    [glView lockOpenGLContext];

    right before the line

    cocos2d::CCApplication::sharedApplication()->run();
     
    sam23 and trudnai like this.
  8. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    How do you extract your game to tvOS?
     
  9. dmmcmah

    dmmcmah Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    103
    Likes Received:
    20
    If you're a paid member you can download the beta version from the forums that exports to tvOS. I can't remember where its posted.
     
  10. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    I see, good to know, maybe I will download it later then. Thanks!
     
  11. sam23

    sam23 Boxer

    Joined:
    Apr 15, 2016
    Messages:
    1
    Likes Received:
    0
    after pasting this, it says
    Code:
    Use of undeclared identifier 'glView'
     

Share This Page