Após fazer a alteração para salvar a imagem no FileManager ao invés do CoreData estou tendo o seguinte erro:
reason=Can't find or automatically infer mapping model for migration, NSUnderlyingError=0x600001560510 {Error Domain=NSCocoaErrorDomain Code=134190 "(null)" UserInfo={entity=Aluno, property=foto, reason=Source and destination attribute types are incompatible}}}, ["reason": Can't find or automatically infer mapping model for migration, "NSUnderlyingError": Error Domain=NSCocoaErrorDomain Code=134190 "(null)" UserInfo={entity=Aluno, property=foto, reason=Source and destination attribute types are incompatible}, "sourceModel": (<NSManagedObjectModel: 0x6000038e8690>) isEditable 0, entities {
Aluno = "(<NSEntityDescription: 0x600002cc8d10>) name Aluno, managedObjectClassName Aluno, renamingIdentifier Aluno, isAbstract 0, superentity name (null), properties {\n endereco = \"(<NSAttributeDescription: 0x6000035d3980>), name endereco, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier endereco, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 700 , attributeValueClassName NSString, defaultValue (null), preserveValueOnDeletionInPersistentHistory NO\";\n foto = \"(<NSAttributeDescription: 0x6000035d3900>), name foto, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier foto, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 1800 , attributeValueClassName (null), defaultValue (null), preserveValueOnDeletionInPersistentHistory NO\";\n nome = \"(<NSAttributeDescription: 0x6000035d3a00>), name nome, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier nome, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 700 , attributeValueClassName NSString, defaultValue (null), preserveValueOnDeletionInPersistentHistory NO\";\n nota = \"(<NSAttributeDescription: 0x6000035d3b00>), name nota, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier nota, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 500 , attributeValueClassName NSNumber, defaultValue 0, preserveValueOnDeletionInPersistentHistory NO\";\n site = \"(<NSAttributeDescription: 0x6000035d3480>), name site, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier site, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 700 , attributeValueClassName NSString, defaultValue (null), preserveValueOnDeletionInPersistentHistory NO\";\n telefone = \"(<NSAttributeDescription: 0x6000035d3a80>), name telefone, isOptional 1, isTransient 0, entity Aluno, renamingIdentifier telefone, validation predicates (\\n), warnings (\\n), versionHashModifier (null)\\n userInfo {\\n}, attributeType 700 , attributeValueClassName NSString, defaultValue (null), preserveValueOnDeletionInPersistentHistory NO\";\n}, subentities {\n}, userInfo {\n}, versionHashModifier (null), uniquenessConstraints (\n)";
No arquivo Agenda.xcdatamodeld o atributo foto já esta como String.