草庐IT

getBatteryPercent

全部标签

ios - 如何使用 theos 链接 IOKit?

我正在开发一个使用IOKit获取电池信息的调整,但它无法构建。Undefinedsymbolsforarchitecturearmv7:"_IOPSCopyPowerSourcesInfo",referencedfrom:getBatteryPercent(int*)inPRJNAME.mm.3bb88719.o"_IOPSCopyPowerSourcesList",referencedfrom:getBatteryPercent(int*)inPRJNAME.mm.3bb88719.o"_IOPSGetPowerSourceDescription",referencedfrom:ge