All files cannot be deleted from the simulator or in the case of building development on the device. This is because Xcode does not want to reinstall the entire application package from scratch every time it is created during development. Instead of destroying everything, he simply changes what has been changed. This can cause problems, for example. The .xcdatamodel files do not seem to be able to be safely removed from the simulator when the file is deleted from the build target.
However, when you release the assembly on the device, uninstalling the application will delete all the files in the application sandbox, that is, wherever the application can write.
This does not apply to a jailbroken device.
Update:
After reading the updated parent, I would notice that this error:
keypath bar not found in entity <NSSQLEntity Foo id=3>
... is generated when trying to access a key path that the object does not support. This error almost always occurs inside the query query predicate. A common reason is trying to get the transition from the transition attribute. (Captures performed against the repository and transient attributes, by definition, do not exist in the repository.)
However, I saw that it is this kind of error that occurs with the installation problems described above.
Since this is true:
The problem exists only when installing through TestFlight ...
... I do not think that:
... but I see no reason to blame TestFlight for my problems
... really justified. If everything works, if you are not using TestFlight, then it is reasonable to conclude that TestFlight is causing the problem.
source share