mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* fix(ios_analyzer): Correctly resolve executable path in .app bundles The previous method for locating the executable within an IPA file was failing for apps with spaces in their `.app` bundle name. The logic incorrectly performed a string replacement on the full path of the bundle, resulting in an invalid path to the binary. This commit refactors the path resolution logic to use `pathlib` features correctly. It now finds the `.app` directory as a `Path` object and uses the `.stem` attribute to reliably determine the executable's name. This approach is more robust, properly handles spaces and special characters in filenames, and avoids fragile string manipulation. * Add doc string back * Update mobsf/StaticAnalyzer/views/ios/binary_analysis.py Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Ajin Abraham <[email protected]> Co-authored-by: Copilot <[email protected]>