Could I get some help with creating a project with code in mac?

I create a new project,and choose “Add Code to Project” to add a c++ class,and click “generate xcode project”. Then I build in xcode,but there is an error.

error: could not read data from ‘/Users/yang/Documents/Unreal Projects/MyProject3/Intermediate/IOS/MyProject3-Info.plist’: The file “MyProject3-Info.plist” couldn’t be opened because there is no such file.

Hi . This error usually means that you are trying to build an OSX project, but XCode is still set to an iOS build. At the top left of the XCode window, just to the right of where the Build and Stop buttons are located, does it show something similar to “MyProject - iOS”? If so, click on that and change it to “MyProjectEditor - Mac”. The secondary option should also reflect your Mac environment, and not iOS. After making those changes try to build the project again. Please let us know if this takes care of the error you were seeing.

You may also want to change your Build Configuration from DebugGame to Development. You can do this by going to Product->Scheme->Edit Scheme.

Thanks.

It does work! Thanks for the answer.