Description

Trying to launch on or package for TVOS or iOS from a source build of Mac or Windows will fail with errors:

[2018.04.02-16.35.08:522][634]LogPlayLevel:   In file included from /Volumes/Storage/GitHub/4.19-3977352/Engine/Intermediate/Build/TVOS/UE4Game/Development/ApplicationCore/Module.ApplicationCore.cpp:14:
[2018.04.02-16.35.08:522][634]LogPlayLevel:   /Volumes/Storage/GitHub/4.19-3977352/Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSPlatformFramePacer.cpp:57:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
[2018.04.02-16.35.08:522][634]LogPlayLevel:   #if UE4_HAS_IOS10
[2018.04.02-16.35.08:522][634]LogPlayLevel:       ^
[2018.04.02-16.35.08:522][634]LogPlayLevel:   /Volumes/Storage/GitHub/4.19-3977352/Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSPlatformFramePacer.cpp:33:24: note: expanded from macro 'UE4_HAS_IOS10'
[2018.04.02-16.35.08:523][634]LogPlayLevel:   #define UE4_HAS_IOS10 (defined(__TVOS_10_0) && __TV_OS_VERSION_MAX_ALLOWED >= __TVOS_10_0)
[2018.04.02-16.35.08:523][634]LogPlayLevel:                          ^
[2018.04.02-16.35.08:523][634]LogPlayLevel:   /Volumes/Storage/GitHub/4.19-3977352/Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSPlatformFramePacer.cpp:65:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
[2018.04.02-16.35.08:523][634]LogPlayLevel:   #if UE4_TARGET_PRE_IOS10
[2018.04.02-16.35.08:524][634]LogPlayLevel:       ^
[2018.04.02-16.35.08:524][634]LogPlayLevel:   /Volumes/Storage/GitHub/4.19-3977352/Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSPlatformFramePacer.cpp:35:32: note: expanded from macro 'UE4_TARGET_PRE_IOS10'
[2018.04.02-16.35.08:524][634]LogPlayLevel:   #define UE4_TARGET_PRE_IOS10 (!defined(__TVOS_10_0_) || __TV_OS_VERSION_MIN_REQUIRED < __TVOS_10_0)
[2018.04.02-16.35.08:784][661]LogPlayLevel:                                  ^
[2018.04.02-16.35.08:850][669]LogPlayLevel:   2 errors generated.

This does not reproduce with Windows or Mac binary builds
This does not reproduce using C++ projects with binary builds.

This only reproduces using source builds of the editor.

This does not reproduce using Xcode 9.2
This does not occur in //UE4/Main at CL 3973918

Steps to Reproduce

This does not reproduce in binary builds or with source builds utilizing Xcode 9.2. A source build is required to reproduce utilizing Xcode 9.3.

  1. Create a new BP Side Scroller project
  2. File > package > TVOS (or iOS)
  3. Choose a package location and click OK

Result: Package will fail while building.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-57178 in the post.

0
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.19.1
Target Fix4.19.1
Fix Commit3981039
CreatedApr 2, 2018
ResolvedApr 3, 2018
UpdatedSep 16, 2019