我正在对一个现有应用进行沙盒化,但由于某些原因迁移似乎无法正常工作,尽管我完全按照文档中指定的步骤进行操作。总结一下,这是我正在做的事情:
- I have removed the existing container (in ~/Library/Containers/com.mycompany.myapp);
- I have created the
container-migration.plist
in the Resources group; I want to migrate a single file, in
~/Application Support
: I have tried to specify the file, and the enclosing folder, neither worked. Here is the migration plist that I am using (I have just changed the application name), with the folder:<?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>${ApplicationSupport}/myapp</string> </array> </dict> </plist>
When I start the application, the new container is created, and a blank file is created but no migration is performed.
我试图迁移的文件是一个CoreData SQLite存储。数据模型没有改变,因此不涉及数据迁移,我只是尝试将CoreData存储移到沙盒容器中。
我想我错过了一些非常明显的东西,因为我找不到任何有用的信息,任何帮助都将不胜感激。