lich4 / ChargeLimiter

Charge limiter for iOS, inspired by AlDente
GNU General Public License v3.0
694 stars 35 forks source link

Unable to compile it #58

Closed Rombond closed 7 months ago

Rombond commented 7 months ago

Hi guys,

I'm trying to compile it to an iPhone 15 Pro on iOS 17 using XCode. I'm having this issues during the compilation: 'posix_spawn_file_actions_addchdir_np' is unavailable: not available on iOS on line 120 of utils.mm

Capture d’écran 2024-03-14 à 19 44 48

Did i miss something ?

lich4 commented 7 months ago
  1. The __API_AVAILABLE macro is useless for Jailbreak development, you can simply remove it from header file if you don't mind.
  2. Copy a header file without the macro and include it
  3. Call dlsym to get the function pointer and call it
  4. ..... there are many ways to resolve this problem