Files
Mobile-Security-Framework-M…/mobsf
49537563cc fix(ios_analyzer): Correctly resolve executable path in .app bundles (#2533)
* 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]>
2025-07-11 23:36:21 -07:00
..
2024-11-25 00:04:40 -08:00
2025-06-23 00:57:33 -07:00
2024-11-17 22:26:06 -08:00
2025-06-23 00:57:33 -07:00