container-migration.plist doesn't work in some cases

I have existing macOS application(pkg distribution) and now I need to release App Store version

I need to move all files from "Documents/My App" to app container

however container migration doesn't work in some cases

I've tested TestFlight build:

  • migration works fine if Mac uses Local Documents folder
  • migration doesn't work if Mac uses iCloud Documents and Desktop folders

Is there some way to fix this?

container-migration.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Move</key>
	<array>
		<string>${Documents}/My App</string>
	</array>
</dict>
</plist>
migration doesn't work if Mac uses iCloud Documents and Desktop folders … Is there some way to fix this?

I doubt it )-:

Container migration was an important feature back when we introduced the App Sandbox, because lots of apps had to do the migration, but it’s less relevant these days, where developers generally know in advance whether they’re going to deploy via the App Store or not. And the iCloud Drive > Desktop & Documents folder was introduced way after the heyday of container migration.

I’m gonna ask you to file a bug about this. Make sure to include a sysdiagnose log taken shortly after reproducing it.

Once you’re done, post your bug number and I’ll see what I can learn from there.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

container-migration.plist doesn't work in some cases
 
 
Q