I am trying to use _CDBatterySaver to turn on low power mode simply using
[[_CDBatterySaver batterySaver] setMode:1];
I know there isn\
Based on Siguza answer
Newer versions of Xcode uses the tbd v2
format. Here is a .tbd
stub file that will compile with the latest version of Xcode.
--- !tapi-tbd-v2
archs: [ armv7, armv7s, arm64 ]
uuids: [ 'armv7: CBD84526-2D11-4CF3-83A7-4408DA532D3E', 'armv7s: 37ACF720-FA66-4B2D-8411-09D0B607E1A0',
'arm64: 19F91B79-9FA2-4944-9E68-3E632C938AE3' ]
platform: ios
install-name: /System/Library/PrivateFrameworks/CoreDuet.framework/CoreDuet
objc-constraint: none
exports:
- archs: [ armv7, armv7s, arm64 ]
objc-classes: [ __CDBatterySaver ]
objc-ivars: [ __CDBatterySaver._connection ]
...