Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

1 votes
1 answers
202 views
How to see list of files accessed by app using Instruments in Xcode
I'm trying to see what files/folders a particular app accesses/modifies I have Xcode 15. I'm using its Instruments app (v. 15.2) I choose File > New > File activity. I choose select target, select my app, then hit the red record button. It starts my app and starts recording. After doing a few things...
I'm trying to see what files/folders a particular app accesses/modifies I have Xcode 15. I'm using its Instruments app (v. 15.2) I choose File > New > File activity. I choose select target, select my app, then hit the red record button. It starts my app and starts recording. After doing a few things in the app, I click the stop button. Now I have a bunch of data. I see a timeline. I select my app. On the bottom pane, there's a drop down list with options like "filesystem calltree" "disk io reads calltree". But selecting one only shows a whole lot of function calls. How can I see a list of files/folders the apps reads from/writes to?
JBart (41 rep)
Jan 9, 2024, 08:54 PM • Last activity: Jul 27, 2025, 01:25 AM
0 votes
1 answers
1820 views
How to make Bluetooth MIDI devices automatically connect, in the same way a Bluetooth mouse does
In macOS (or any other OS), if you have a Bluetooth mouse it works right away after booting the computer (after the first pairing when it's new), and if you turn it off and later turn in back on, it gets automatically detected by the computer and just works, no fuss, no trouble, as it should. But wi...
In macOS (or any other OS), if you have a Bluetooth mouse it works right away after booting the computer (after the first pairing when it's new), and if you turn it off and later turn in back on, it gets automatically detected by the computer and just works, no fuss, no trouble, as it should. But with Bluetooth MIDI devices it's not like that. Every time you boot the computer you have to go to Spotlight and type "Audio MIDI Setup", then go to its top menu and click on "Window" > "Show MIDI studio", then in the new window that appears, click on the "Bluetooth icon", then in yet another window find your device name and click on the "Connect" button. Why has it be so convoluted? And that's not the worst part. If you have to switch off the MIDI instrument for any reason (even just to save power) or it just loses power for whatever reason (battery runs out, for example), then, after switching it back on, you have to go through all of the unnecesarily long process in the previous paragraph just to be able to click again in the "Connect" button. It might not seem like much but when you have to do it over and over and over, it gets old very fast and consumes way too much time when adding all of the times you have to do it. Why do I have to click on that "Connect" button (which is really buried into several UI windows) EVERY new time I switch on a MIDI instrument? If I don't have to do all those steps with a Bluetooth mouse, then why on earth I have to do all that with a Bluetooth MIDI instrument, which is just a Bluetooth device like any other, after all? So my question is: **Is there any workaround or any app that will detect and automatically connect Bluetooth MIDI devices like the OS should be doing in the first place?**
OMA (707 rep)
Jul 12, 2023, 11:01 PM • Last activity: Sep 14, 2023, 12:23 PM
2 votes
1 answers
2550 views
A specific Safari WebKit page on iOS - how to see memory usage graph in Instruments?
I've set up Xcode/Instruments so that I'm monitoring an iPhone 6s's memory usage altogether. I've got a specific com.apple.WebKit Process that I would like to see very finetuned information on - as precise as possible. This com.apple.WebKit process will eventually crash the Mobile Safari running on...
I've set up Xcode/Instruments so that I'm monitoring an iPhone 6s's memory usage altogether. I've got a specific com.apple.WebKit Process that I would like to see very finetuned information on - as precise as possible. This com.apple.WebKit process will eventually crash the Mobile Safari running on an iPhone 6s using iOS 10 - this WebKit process will not crash an iPhone SE running iOS 11 Beta - but that's just to say that "things will eventually get better". It seems that 1Gb of memory is not enough to run the com.apple.WebKit process for this specific scripted embed. So, I start Instruments running and I see peaks of 640mb or so of memory usage - but how could I record this memory usage in the finest possible detail, so that I can figure out what drives this over the edge?
esaruoho (1189 rep)
Sep 10, 2017, 09:07 AM • Last activity: Jul 13, 2022, 11:21 PM
2 votes
1 answers
1211 views
Connecting a MIDI piano keyboard to the iPad with a MIDI cable
I have an iPad Pro and wanted to connect a keyboard with my iPad via a MIDI cable that I also have (https://www.amazon.es/gp/product/B00NH13DV2/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1). And I don't know which adapter to buy to be able to do it. Thank you very much
I have an iPad Pro and wanted to connect a keyboard with my iPad via a MIDI cable that I also have (https://www.amazon.es/gp/product/B00NH13DV2/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) . And I don't know which adapter to buy to be able to do it. Thank you very much
Guillemus Callelus (123 rep)
Feb 15, 2021, 12:59 PM • Last activity: Feb 15, 2021, 02:56 PM
3 votes
1 answers
295 views
Catalina: Instruments with Full Disk Access
I am trying to use `Instruments` on my laptop, but it seems that **after updating to Catalina**, it cannot access my `Documents` folder: [![instruments][1]][1] I have given access to the application, **Full Disk Access**, but it does not work (I even shut down the laptop and restarted it, and also c...
I am trying to use Instruments on my laptop, but it seems that **after updating to Catalina**, it cannot access my Documents folder: instruments I have given access to the application, **Full Disk Access**, but it does not work (I even shut down the laptop and restarted it, and also checked for errors with Disk Utility). preferences Am I missing something?
senseiwa (227 rep)
Oct 29, 2019, 01:33 PM • Last activity: Oct 30, 2019, 03:22 PM
2 votes
2 answers
2660 views
GarageBand 10.1.1 Removed MainStage Instruments
After updating to GarageBand 10.1.1, all the instruments I've downloaded from MainStage 3 have disappeared from the instrument library. They still seem to be in `/Library/Application Support/GarageBand/Instrument Library/Sampler/Sampler Instruments`, but they're not showing up in the list. Any proje...
After updating to GarageBand 10.1.1, all the instruments I've downloaded from MainStage 3 have disappeared from the instrument library. They still seem to be in /Library/Application Support/GarageBand/Instrument Library/Sampler/Sampler Instruments, but they're not showing up in the list. Any projects with the instruments, however, play perfectly with them. I'm not talking about Jam Packs here; they're still right there in the "Legacy" category. I'm talking about things like the expanded orchestral strings, world music, etc. How can I get these back? [Topic on the Apple website.](https://discussions.apple.com/thread/7526588)
Caleb P (61 rep)
Apr 10, 2016, 11:16 PM • Last activity: Aug 25, 2018, 04:00 AM
1 votes
0 answers
196 views
Xcode Instruments is throwing an error about non-existent iOS app extension
This is the error I'm getting when I try to run an Instruments network trace on my iPhone: [![Instruments error message][1]][1] This extension is part of the the Wide Protect app, which I've deleted. I've already tried restarting the iPhone and deleting/reinstalling XCode. Looks like some crud is ge...
This is the error I'm getting when I try to run an Instruments network trace on my iPhone: Instruments error message This extension is part of the the Wide Protect app, which I've deleted. I've already tried restarting the iPhone and deleting/reinstalling XCode. Looks like some crud is getting left behind, but is it on the iPhone or on my Mac?
zencraft (183 rep)
Jul 24, 2018, 06:44 PM
0 votes
1 answers
1458 views
Profiling code with XCode
I am trying to use time profiler. It worked in the past with an older version of the same code but now it looks like it is not working anymore. From `Xcode`, I go on `profile` and select `time profiler` and then start recording. The record stops after not even a second. I never really understood whe...
I am trying to use time profiler. It worked in the past with an older version of the same code but now it looks like it is not working anymore. From Xcode, I go on profile and select time profiler and then start recording. The record stops after not even a second. I never really understood when time profiler decides to stop the recording but in the past it was long enough to get info of interest. The call tree looks like (let me know if you'd like me to zoom on any part) enter image description here As all symbols on the left of the call tree are yellow (don't exactly what it means), it seems like my code never really started doing anything. Of course, my code works fine and run without error in both regular and #define DEBUG mode whether on Xcode or through the command line.
Remi.b (721 rep)
Nov 4, 2016, 10:06 PM • Last activity: Nov 12, 2016, 11:18 PM
3 votes
1 answers
1198 views
How do I zoom without a trackpad in Xcode Instruments Time Profiler?
When using Xcode Instruments Time Profiler on my MacBook, I'm able to pinch to zoom in on the CPU measurements in the Swim-lane. However I cannot figure out how to do the equivalent on my iMac with no trackpad. [![Xcode Swim-lane screenshot][1]][1] [1]: https://i.sstatic.net/yYUTC.png How can I zoom...
When using Xcode Instruments Time Profiler on my MacBook, I'm able to pinch to zoom in on the CPU measurements in the Swim-lane. However I cannot figure out how to do the equivalent on my iMac with no trackpad. Xcode Swim-lane screenshot How can I zoom in on a Swim-lane without a trackpad?
Dan Beaulieu (197 rep)
Dec 31, 2015, 02:41 PM • Last activity: Sep 5, 2016, 05:15 AM
2 votes
5 answers
22803 views
Is my iPhone 5S draining battery too fast (and is it due to process mediaServerD?)
My iPhone 5s has always had less good battery life than my previous iPhone (4S), but I'd always assumed that it was due to the increased speed of the CPU/GPU and the increased screen size. It also sometimes seems warm in my pocket (not hot - but warmer than I would expect it to be in the ambient tem...
My iPhone 5s has always had less good battery life than my previous iPhone (4S), but I'd always assumed that it was due to the increased speed of the CPU/GPU and the increased screen size. It also sometimes seems warm in my pocket (not hot - but warmer than I would expect it to be in the ambient temperature.) This article: http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-drain Has been very popular in the last week, and I read it. Something I had never done before was to check the usage stats. See also the second from last paragraph here: https://www.apple.com/uk/batteries/iphone.html It appears that my phone never sleeps. The standby (usage+standby) figure is always the same as the usage figure. I assume that this is not normal. The other day it ran down from full charge to almost empty in 7 hours. As you can see from this screenshot: Is that normal battery life? 7 Hours Battery Life Yesterday I ran Activity Monitor in Instruments on the phone when it was connected to my Mac - nothing seemed to be taking-up ridiculous CPU time, but I did notice that a process named **mediaserverd** was always at the top of the CPU chart - and always consuming 6% of CPU. I assume that it was designed to be permanently running, but I doubt that it's meant to be that power hungry. Please could someone else with a 5S run Activity Monitor in Instruments on their phone and let me know if the process is just as hungry on their phone. Thanks.
Diggory (808 rep)
Apr 11, 2014, 07:06 AM • Last activity: Aug 20, 2015, 04:56 PM
3 votes
0 answers
1485 views
Get rid of the "Instruments wants permission to analyze" prompt, from command line, in Yosemite
In our jenkins build automation environment we have several OSX nodes, now all updated to Yosemite, where we run ios simulator tests. The problem is that on any newly introduced node simulator tests cannot run without further ado since instruments keeps prompting "Instruments wants permission to ana...
In our jenkins build automation environment we have several OSX nodes, now all updated to Yosemite, where we run ios simulator tests. The problem is that on any newly introduced node simulator tests cannot run without further ado since instruments keeps prompting "Instruments wants permission to analyze other processes. Type your password to allow this." I've tried all the hints I could find, e.g. at https://stackoverflow.com/questions/9476131/is-there-a-way-to-remove-the-authorization-prompt-from-command-line-instances-of , like 1) DevToolsSecurity --enable 2) security authorizationdb write system.privilege.taskport allow 3) security authorizationdb write system.privilege.taskport is-developer 4) Other settings like `allow-root ` `authenticate-user ` `class allow ` 5) sudo security authorize -u [username] Also I've made certain the [username] is in _developer group. `dsmemberutil checkmembership -U "[username]" -G "_developer" => user is a member of the group` Combination of 1) and 2 seems to have done the trick earlier, in Mavericks. Any hint of what command line will do the trick in Yosemite will be very much appreciated!
Stephan (31 rep)
Jul 7, 2015, 07:44 AM
1 votes
3 answers
2684 views
Rolling back to a previous version of OS X Mavericks
I installed the latest version of Mavericks and it broke some stuff (instruments) which I cannot afford to have broken. Is there a way to roll back to my previous release? Am currently on 10.9.2 and want to go to 10.9.1 or 10.9. Regards, Mark
I installed the latest version of Mavericks and it broke some stuff (instruments) which I cannot afford to have broken. Is there a way to roll back to my previous release? Am currently on 10.9.2 and want to go to 10.9.1 or 10.9. Regards, Mark
Mark Micallef (113 rep)
Mar 12, 2014, 11:00 AM • Last activity: Mar 12, 2014, 08:08 PM
Showing page 1 of 12 total questions