frida / frida

Clone this repo to build Frida
https://frida.re
Other
15.21k stars 1.58k forks source link

Unable to mount Developer Disk Image on iOS 17.5.1 with Xcode 15 #2898

Open sajal4me opened 2 days ago

sajal4me commented 2 days ago

I am trying to use Frida to instrument a debuggable app on a non-jailbroken iPhone running iOS 17.5.1. I am using a Mac with Xcode 15 installed.

I followed the instructions in the documentation for using Frida without jailbreak. However, I encountered an issue when trying to mount the Developer Disk Image.

According to the documentation, the Developer Disk Image must be mounted, and Xcode should do this automatically when it discovers the iOS device. If not, the documentation suggests using ideviceimagemounter to mount the Developer Disk Image manually.

However, starting from Xcode 15, Apple has changed how Device Support files are managed. Instead of including them in the Xcode application bundle, they are now downloaded on-demand and stored in ~/Library/Developer/Xcode/iOS DeviceSupport/.

I tried to mount the Developer Disk Image for iOS 17.5.1 using ideviceimagemounter, but I got a "No such file or directory" error. It seems that the Developer Disk Image for iOS 17.5.1 is not located in the expected directory.

Here is the command I used and the error message I got:

ideviceimagemounter ~/Library/Developer/Xcode/iOS\ DeviceSupport/iPhone14,5\ 17.5.1\ \(21F90\)/DeveloperDiskImage.dmg
ERROR: stat: /Users/sajal.gupta/Library/Developer/Xcode/iOS DeviceSupport/iPhone14,5 17.5.1 (21F90)/DeveloperDiskImage.dmg: No such file or directory

Could you please update the documentation to reflect these changes made by Apple, and provide guidance on how to mount the Developer Disk Image for iOS versions 15 and above?