Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can Compile in UE4 But Cannot Compile in XCode 7


I am trying to use UE4 to compile my game in android phone. I have been successful to make it run in android. All of that is done in the UE4 Editor.

But when I tried to compile it in XCode (klik the Play button), it says the build is failed.

The log is as follows:

 Building UE4Editor...
 Compiling game modules for hot reload
 Compiling with MacOSX SDK 10.11
 ERROR: One or more of the modules specified using the '-module' argument could not be found.
 Command /Users/Shared/UnrealEngine/4.11/Engine/Build/BatchFiles/Mac/RocketBuild.sh failed with exit code 5

But when I hit the compile button in the UE4Editor, the compilation is success.

Can I just press the "Play" button in xcode? or should I change into UE4Editor everytime i want to compile the project?

Thank you, Rizy

Product Version: UE 4.11
more ▼

asked May 22 '16 at 04:26 AM in C++ Programming

avatar image

1 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This is not a final answer of any sort, but to have better luck with hot reload, I start the Editor from within XCode (pressing the "Build" button that is a graphic of a right-pointing arrow), then make my C++ changes in XCode, after which I pull down the "Product" menu and select Build. This usually causes the Hot reload to work. If it doesn't, I close the editor and press the Build button to restart it. I started doing this because adding some UFUNCTION or UPROPERTY statements would simply not be recognized in the editor within the blueprints that needed them, until I did.

If I open the uproject file, it will eventually stop hot reloading though it will compile for awhile but then stop for reasons unknown to me. I open it that way if I'm not adding any UFUNCTION or UPROPERTY Macros (i.e., am making no more than code changes to existing classes). Starting the editor this way, when hot reloading stops, If I close the editor and reopen it, it will usually start hot reloading again.

I say this is not an answer because first, I'm sure they didn't design it to work this way, and second, I'm just working around a problem I don't understand, so one can repeat "superstitions" that may not be necessary. The "magic" surrounding this seems to have changed a bit since 4.10/4.11 since the XCode Schemes have changed. I have seen a few "questions" on this, but no response from Epic, so I would guess those of us who experience it, have something unique in our projects and it's not been recreated.

Another possible pitfall that brings this error. Be sure you select your project name in the schemes and not "UE4_Build". That scheme always appears to bring this error up.

more ▼

answered May 22 '16 at 12:56 PM

avatar image

480 26 12 45

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question