x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Build errors packaging for iOS : UE 4.17.2 / Xcode 8.2.1

I have been experiencing a variety of errors trying to get an Unreal project started on Windows to compile for iOS on a Mac. Initially, I had the problems with Xcode 9 and 8.3 described in this post: https://nacellegames.com/blog/2017/3/31/how-to-change-what-xcode-versions-for-compiling-unreal-engine-4-cpp-projects

I followed the instructions in it using Xcode 8.2.1 and was successful in building the Xcode project. In UE, however, the packaging process fails, seeming to error out on references to UE classes. A small sampling of the errors:

/Source/<Project>/<Project>Pawn.h:6:30: error: base class has incomplete type
- extends APawn

/Source/<Project>/AssetLibrary.h:36:30: error: expected class name
- referencing UBlueprintFunctionLibrary

/Source/Roomored/AssetLibrary.h:38:2: error: incomplete type 'UTextProperty' named in nested name specifier

These would seem to indicate that the project is unable to find UE classes for some reason, which makes me think there's a problem in either pre-compiled headers or something else related to Xcode/clang.

Product Version: UE 4.17
Tags:
more ▼

asked Nov 15 '17 at 04:31 PM in Bug Reports

avatar image

ChrisGriffith
36 3 4

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

1 answer: sort voted first

So it turns out that this was a problem with the fact that on Windows it compiles in such a way that it doesn't need any engine includes - probably a Visual Studio thing. On Mac with Xcode they are required. I just had to hunt down the engine classes being used and include the headers. Hopefully this is helpful to someone in the future.

more ▼

answered Nov 15 '17 at 11:18 PM

avatar image

ChrisGriffith
36 3 4

avatar image Tim C ♦♦ STAFF Nov 20 '17 at 04:16 PM

Hi Chris,

I am glad to hear that you were able to resolve this. By any chance, was your project originally created prior to 4.15? We switched the Engine to use an "Include What You Use" format in 4.15, and prior to that I don't believe individual Engine header files were included in classes due to them being included by header files that included large numbers of Engine header files, some of which may not actually have been used by the project. When I created a new project in 4.17 (on Windows) and added new Pawn and BlueprintFunctionLibrary code classes, the appropriate Pawn.h and BlueprintFunctionLibrary.h files were included in the header files for the new class.

Tim

avatar image ChrisGriffith Nov 20 '17 at 04:55 PM

Yes, I'm pretty sure it was. It's great to know the Include What You Use feature is now available. Thanks for the heads-up!

(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