Strategy Game Sample - Generating XCode Project File

Hi there,

I’ve been trying to get the Strategy Game Sample to work on a Mac with XCode. I first had a problem related to when generating the project files from the .uproject file it misses a key argument in the build settings, found in the .xcodeproject.

After resolving this by manually changing the .xcodeproject settings, the project compiled (I’m assuming there’s a better way to make sure this always updates correctly from generating project files from the .uproject). However the next problem has been that the Editor will not run as it comes up with the following message:

11489-screen+shot+2014-07-30+at+2.05.50+pm.png

This is wrong and not only is the .uproject incorrect but the path is wrong aswell. Where can I update where it receives the path and filename of the descriptor file that it wants? and also where can I add in this missing build tool argument so that the generate xcode files automatically adds this, like it does if I make other code projects from scratch.

All the best,

Nick

Could you please give me some more info?

  1. The full path to your StrategyGame .uproject file
  2. The full path to your StrategyGame Xcode project
  3. How exactly did you generate the Xcode project (.uproject’s right click menu, terminal, etc.). The more details you can give me, the faster I’ll be able to help.

Thanks!

Hey Michael, yup, no problem at all:-

  1. documents/Unreal Projects/Storm/Storm.uproject
  2. documents/Unreal Projects/Storm/Storm.xcodeproj.
  3. right click on the .uproject->services->generate xcode project files.

generation of the project files doesn’t report any errors, it just feels like it hasn’t been able to move the project over to a bespoke one completely. I can get any other code projects to work just fine, but the sample here doesn’t like the generation of project files. I also can do this one on windows with no problem on Visual Studio.

I’ve tried this on two different Macs and this behaviour seems pretty replicable.

What’s confusing is that you have StrategyGame target instead of Storm target. I wonder how did that happen.

indeed, are you able to replicate something similar at your end? :slight_smile:

Yeah, just tried it. Apparently we have a bug and setting a custom name for a project created from the vault doesn’t work properly :frowning:

Sorry about that. I’ll look into this. At the moment I’m unsure where the problem lies. The only workaround I can think of for now is to create a new project and use default name - StrategyGame.

Ah, that’s good to know though, I’d have probably have spent a lot of time bashing head against it trying to get it to work otherwise. Let us know if you find an easier workaround, I’m not completely adverse to the currently suggested one, but I’ll hold off for a bit.

Thanks, Michael!

No problem, will do.

Looks like it’s not as bad as I feared. It should work OK if you go to Edit Scheme for StrategyGameEditor - Mac, switch to Arguments tab and replace StrategyGame argument with full path (quoted) to your .uproject file.

I will fix Xcode project generator to handle this properly.

Fixed. Fix will be included in 4.4.