Xcode build for Mac errors

Discussion in 'Technical Discussion' started by dan_counsell, Oct 6, 2015.

  1. dan_counsell

    dan_counsell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    172
    Likes Received:
    229
    Can't seem to get my BB game to build on OS X (Builds for iOS are working just fine).

    Here's a screenshot including the build error from Xcode: http://downloads.dancounsell.link/UXXY

    I'm using…
    - BuildBox 1.3.5
    - Xcode 6.4
    - Mac OS X 10.11

    Anyone else having issues with getting their game to compile for OS X?
     
    Kevin W likes this.
  2. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    Did you email the issue to support@buildbox.com? I have not tried to export for OSX personally.
     
  3. dan_counsell

    dan_counsell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    172
    Likes Received:
    229
    Thanks, I have done now ;)
     
  4. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    I think this is an issue specific to running El Capitan... if so it should be fixed in the near future. We will check it out.
     
  5. dan_counsell

    dan_counsell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    172
    Likes Received:
    229
    @Andy Thanks.

    So for now we should build on 10.10 if we want to build an ship on the Mac?
    If yes, do you know if BB games built on 10.10, will run under 10.11?
     
  6. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    @dan_counsell I too am using the same setup as yours but as yet have not had that error! Everything compiles and builds fine for me! Hmmmmm?
     
    Sean Buildbox likes this.
  7. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Interesting, I'll look at this closer tomorrow.

    But yes 10.10 is recommended to build for now and anything build on 10.10 should run fine on later versions. Same as iOS versions as well. Software is almost always forwards compatible unless something drastic like the CPU architecture is changed. Apple did this about 10 years ago when they switched to intel based CPUs.
     
    Sean Buildbox likes this.
  8. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    dan_counsell likes this.
  9. dan_counsell

    dan_counsell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    172
    Likes Received:
    229
    @Andy Awesome, thank you. Just tested this and it fixed the issue. :)

    For anyone else looking to build for Mac now, this is the line of code you need:
    [glView lockOpenGLContext];

    Place it just before the error you get when building. Screenshot attached.
     

    Attached Files:

    mobile_gamegraphics and Kevin W like this.
  10. leotungtran

    leotungtran Boxer

    Joined:
    Oct 19, 2015
    Messages:
    1
    Likes Received:
    0
    #7
    There are various ways to use xcodebuild to build your iOS or OS X projects from the command line.
    The easiest way is just type a single command without any parameter “xcodebuild” to build the project in the current directory: xcodebuild
    We can also specify the project to build in the command line like below:
    xcodebuild -project GCClient.xcodeproj

    You can see the Tips or Tricks of xcodebuild here: http://www.toughdev.com/viewpost.php?id=831&t=1
     

Share This Page