How do I profile my app in xcode - the menu item is disabled?
Product > Profile is disabled
This is very unlikely but still, one possible reason:
Make sure correct 'Executable' is selected in 'Profile' option for your Scheme. If the selected executable is 'None', profile option will be disabled.
In case you don't know how to check scheme settings, you can check these setting by selecting 'Edit Scheme' either from Scheme menu (App name and device/simulator drop downs near the Run and Stop button ) or from 'Product' menu of xcode
My profile menu item was also dimmed.
I realized I had disconnected my iPhone from my Mac which broke the product destination link. If you've been testing on your phone, try resetting the product destination.
If the phone doesn't show up in the Product/Destination submenu do the following:
Run a terminal session.
In terminal type the following:
sudo launchctl stop com.apple.usbmuxd
Unplug and replug your phone to your Mac.
If your phone still doesn't appear in the Product/Destination submenu, restart Xcode and repeat step three.
Set your phone in the Product/Destination submenu.
Your Profile menu item should be undimmed.
Related
I usually use Android studio for application development with Flutter.
I'm trying to use VSCode, but as the title says, I can't find the selection of the target device I want to run.
For the time being, I selected [Run and Debug] from the icon on the left and executed it, and I was able to run the app on the actual iphone, but I want to run it on macOS.
I would appreciate it if you could tell me where it is.
At the very bottom of your editor, there is a bar, in this bar you should see the name of the currently selected platform, if you click on the platform, you will bring up a menu where you can select the device.
here is a closeup:
In my case you would click on "windows (windows-x64)"
You can also press Ctrl+Shift+P and write Flutter: select device to bring up the same menu
In OSX before Catalina we could use:
defaults write com.apple.iTunes DeviceBackupsDisabled -bool true
to disable iPhone backups
Does anyone know how to disable in Catalina?
Set the privilege to Read only for the Backup folder (~/Library/Application Support/MobileSync/Backup).
I got a solution for this.
update mac OS to 10.15.1
Then uncheck above option called 'Automatically sync when this iPhone is connected'
Connect your device to your Mac.
In the Finder on your Mac, select the device (your iPhone) in the Finder sidebar.
Select General in the button bar.
[ ] Automatically sync when this iPhone is connected - UNCHECK
Automatically sync when this [device] is connected: To automatically sync when you connect your device, select this tickbox.
Click Apply.
In case a case happens:
When clicking on it to uncheck, then nothing happens besides the Apply button turning grayed out, rendering it totally useless. When coming back to the devices, it's checked and it syncs.
Solution:
Open Activity Monitor
Find process AppleMobileBackup and select it or click on it to be highlighted
Go to menu View→ Quit Process (Alt/Option + Apple/Command-Cmd + Q → shortcut: ⌥⌘Q )
Press Force Quit
Wait a few seconds and you will be able to press Apply button to turn off automatic sync.
Unchecking doesn't work. every time I reconnect the iPhone it has all the default tick boxes checked - including "Automatically sync when this iPhone is connected" There is no way to prevent Apple from forcing you to sync via finder.
When I try to capture UI inputs on the device using UIAutomation, it hangs saying "Starting Capture".
1) I click on Profile in Xcode which
2) Starts up Instruments where I select Automation and click Profile
3) Which starts Instruments running. In Scripts I select Add->Create which shows the record button at the bottom
4) I click the record button and it hangs saying "Starting Capture" and doesn't record my UI input.
My Profile scheme's Build Configuration is Debug.
Any idea what I am missing that is causing UIAutomation to hang?
For an iOS8 device, also make sure that UI Automation is enabled in Settings.
Settings -> Developer -> Enable UI Automation
Figured it out. I hope this helps someone else!
1) Click on Profile in Xcode (or Cmd-I)
2) In Instruments select Automation and click Profile
3) Click Instruments Record button to stop the running of the app
4) Click Scripts -> Add -> Create
5) Click Record button at bottom of Instruments (which is for recording the script)
6) Click Record button at top of Instruments (which is for running the app)
7) Click on Trace Log -> Script to view the script you are creating.
Whew!
Check if you've chosen Debug mode in the Profile Scheme and also you've got the correct signing identity and the provisioning profile.
i am using iphone simulator. One time i chose "deny and do not ask me". But now i want using this functionality. How can I do this ?
my mac is 10.6.3 ; Do i need an update ? I didn't find a check box "Disable Location Services"
Apple->System Preferences -> Security
Go Apple->System Preferences -> Security In the general tab there is a check box "Disable Location Services" next to that there is a button to reset warnings. That should do it.
With the iPhone Simulator open, click on the iOS Simulator menu then Reset Contents and Settings. This will erase all Apps from the simulator as well as reset it to the default settings.
I am testing with iPhone simulator and I want to get the message to allow or not the user location. My problem is that I have clicked once (to test it) the no button with the Do not show this message again checked. How can I get it again?
Thanks for reading.
Now I have the answer to this problem. Into the iOS Simulator, you have to click under the "iOS Simulator" window menu and to choose the "Reset content and settings" options.