Disable iPhone backup in Catalina - iphone

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.

Related

I can't find the location to select for the target device in VS Code. (Flutter)

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

How do I profile my app - the menu item is disabled?

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.

Shut down iPhone in simulator

This might seem like a strange question, but can I actually shut down the iPhone and restart it in the iPhone simulator? I want to do this to see if my settings are saved and reloaded when the app is relaunched AFTER shutdown.
Thanks
Yes. Press Command+Q to quit the simulator.
This will close all the apps running in the simulator.
Pressing the home button only returns to the home screen without quitting the apps(ios 4 or later) because of multitasking.
You can also double tap the home button, click and hold on the icons at the bottom of the screen till a red circle appear, and click on the red circle to close the running app.
As of XCode 9, the best way to close a single simulator is using the Cmd + W shortcut, or going to File -> Close Window.
If your'e xcode 9.You can now shutdown the simulator by long-pressing the power button.
To close/shutdown one simulated device without closing other simulations, select the device you want to shut down then go to "File" and choose "Close Window".

I forbad my iphone app to define my location. How can I allow?

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.

What can be causing the problem that I can't make a screenshot from my iPhone app in the Organizer window?

For some reason, when I press "Capture" while my device is connected and running the app (launched via Build & Run in Xcode), nothing happens. Never get a screenshot. iPhone OS 3.0. What can be the problem.
I've had this problem—it seems to be caused by there being a screenshot currently selected in the Organizer. Click on the left-hand screenshot pane to highlight it (i.e. deselect whatever screenshot thumbnail is selected), then hit the Capture button.