Build project as framework iOS package error

  1. We check the “Build project as a framework” on iOS
  2. Then Package Project->iOS
  3. We got this error:

ATHelper: Packaging (iOS): /Users/titanium/workspace/UnrealEngine/Engine/Source/Runtime/Engine/Public/Animation/AnimCurveTypes.h:164:3: error: declaration shadows a variable in namespace 'Chaos' -Werror,-Wshadow]
UATHelper: Packaging (iOS): X = 0,
UATHelper: Packaging (iOS): ^
UATHelper: Packaging (iOS): /Users/titanium/workspace/UnrealEngine/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ParticleDirtyFlags.h:12:3: note: previous declaration is here
UATHelper: Packaging (iOS): X = 1 << 0,
UATHelper: Packaging (iOS): ^
PackagingResults: Error: declaration shadows a variable in namespace 'Chaos' -Werror,-Wshadow]

  1. If we do not check the “Build project as a framework” everything is OK.
  2. How to fix it? Thanks.
  3. We use the release branch from github source code.

You have any solution?