Thanks for the quick response!
I had created 'xcdatamodel' file using Xcode 15 and moved it under a folder using Xcode 15 as well which added the name property to project file. I later moved out the 'xcdatamodel' file back to the main level of the project and had deleted the folder and hence I am seeing the 'name' property being deleted from the project file whenever I make any changes to the project.
I had came across a post on Stack Overflow as well where they were seeing something similar in 'xcdatamodel' section in project file i.e. name being added or the path was changed, using Xcode 15.
In my case, I deleted the line manually from the app's project file and it didn't cause any issue to my project.
Thanks again!
Post
Replies
Boosts
Views
Activity
I thought "name = "sample-app.xcdatamodeld";" got added when I first created data model file, but now I understand that it is getting added only after I move the data model file under a folder.
So my question now - is "name = "sample-app.xcdatamodeld";" expected?
Thanks for your response!
I haven't changed the Xcode project file manually, but I did create a sample project on the side and followed the steps of what I had done.
If I create data model file (.xcdatamodeld) at main project level, then the project file doesn't have "name" property in it and the path to the data model is also correct. I was trying to sort the project into modules and folders and I created a specific folder for data model and moved ".xcdatamodeld" under that folder. That's when "name" gets added to project file and even the path of the data model file changes.
Here is what you can try:
Create a sample app and add data model file to it at main project level.
Check project file and you won't see "name = "sample-app.xcdatamodeld";" in it.
Now create a new group/folder at main project level and move the data model file under it.
Check the project file and you will see "name = "sample-app.xcdatamodeld";" being added to it.
Is this expected?
Did you find any solution for this? Even I wish to display image and text and I am only seeing an image, no matter what I try.