Description

Compile error packaging for tvOS:

Does not affect iOS

UATHelper: Packaging (tvOS): UnrealBuildTool:   D:\Build\joseph.wysosky_Main\Engine\Source\Runtime\Core\Private\iOS\IOSAppDelegate.cpp(388,12): error: 'setBatteryMonitoringEnabled:' is unavailable: not available on tvOS
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:         [myDevice setBatteryMonitoringEnabled : YES];
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:                   ^
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:67:61: note: property 'batteryMonitoringEnabled' is declared unavailable here
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled NS_AVAILABLE_IOS(3_0) __TVOS_PROHIBITED;  // default is NO
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:                                                             ^
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:67:61: note: 'setBatteryMonitoringEnabled:' has been explicitly marked unavailable here
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: In file included from /Users/compile/UE4/Builds/RDU-WD-7313/D/Build/joseph.wysosky_Main/Samples/Games/PlatformerGame/Intermediate/Build/TVOS/PlatformerGame/Development/Core/Module.Core.3_of_8.cpp:27:
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:   D:\Build\joseph.wysosky_Main\Engine\Source\Runtime\Core\Private\iOS\IOSAppDelegate.cpp(390,26): error: 'batteryLevel' is unavailable: not available on tvOS
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:         return ((int)([myDevice batteryLevel] * 100));
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:                                 ^
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:69:61: note: property 'batteryLevel' is declared unavailable here
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: @property(nonatomic,readonly) float                         batteryLevel NS_AVAILABLE_IOS(3_0) __TVOS_PROHIBITED;  // 0 .. 1.0. -1.0 if UIDeviceBatteryStateUnknown
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool:                                                             ^
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:69:61: note: 'batteryLevel' has been explicitly marked unavailable here
UATHelper: Packaging (tvOS): UnrealBuildTool: 
UATHelper: Packaging (tvOS): UnrealBuildTool: 2 errors generated.
Steps to Reproduce
  1. Open PlatformerGame in the editor
  2. Setup Remote Build options
  3. Package for tvOS

Result: Compile failure

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.15
Target Fix4.15
CreatedDec 9, 2016
ResolvedDec 13, 2016
UpdatedSep 16, 2019
View Jira Issue