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?
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.
@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?
@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?
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.
This can be corrected easily in Xcode after export: http://discuss.cocos2d-x.org/t/cocos2d-x-2-x-on-mac-osx-el-capitan/23035 We will integrate shortly so you won't need to do this manually.
@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.
#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