DiabetesCompass / Diabetes_Compass

iOS code for type 1 diabetes management
MIT License
4 stars 0 forks source link

Build error Failed to read data model #13

Closed beepscore closed 7 years ago

beepscore commented 7 years ago

compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: Failed to read data model Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format" UserInfo={NSFilePath=compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format}

TODO: Consider delete old model file and regenerate. Does app have any previous users whose data should be migrated? (Easiest if don't need to provide for a database migration)

References http://stackoverflow.com/questions/6712123/deleting-core-data-version-xcdatamodel-files?noredirect=1&lq=1 http://stackoverflow.com/questions/7708392/how-to-delete-an-old-unused-data-model-version-in-xcode-4#8107530 http://stackoverflow.com/questions/32252330/failed-to-compile-core-data-model-in-xcode-7

calferness commented 7 years ago

Ok, I'll have to look into this and see if I can understand the issue. At this point, I don't even know what the data model is. I'll do that tomorrow. Went to an interesting thing at UW today. It's called Comotion. They had some really cool virtual reality demos. Clif

Clif Alferness 13143 Shoreline DR SE Olalla, WA, 98359 calferness@gmail.com

On Nov 3, 2016, at 9:15 PM, Steve Baker notifications@github.com wrote:

compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: Failed to read data model Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format" UserInfo={NSFilePath=compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format}

TODO: Consider delete old model file and regenerate. Does app have any previous users whose data should be migrated? (Easiest if don't need to provide for a database migration)

References http://stackoverflow.com/questions/6712123/deleting-core-data-version-xcdatamodel-files?noredirect=1&lq=1 http://stackoverflow.com/questions/7708392/how-to-delete-an-old-unused-data-model-version-in-xcode-4#8107530 http://stackoverflow.com/questions/32252330/failed-to-compile-core-data-model-in-xcode-7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

beepscore commented 7 years ago

Data model is Model in Model View Controller MVC design pattern for iOS apps. App is using Core Data and Magical Record to store info in a database. I haven't looked, but probably this includes food and insulin, which then are used as inputs to physiologic model. Main question- can we ignore any existing user data on devices of people who currently have the app? It's simpler to not do a database migration that would preserve data when app is updated this time. If someone installs the update, this time they would lose their historical data.

Steve Baker

On Nov 3, 2016, at 10:32 PM, Clif Alferness notifications@github.com wrote:

Ok, I'll have to look into this and see if I can understand the issue. At this point, I don't even know what the data model is. I'll do that tomorrow. Went to an interesting thing at UW today. It's called Comotion. They had some really cool virtual reality demos. Clif

Clif Alferness 13143 Shoreline DR SE Olalla, WA, 98359 calferness@gmail.com

On Nov 3, 2016, at 9:15 PM, Steve Baker notifications@github.com wrote:

compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: Failed to read data model Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format" UserInfo={NSFilePath=compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format}

TODO: Consider delete old model file and regenerate. Does app have any previous users whose data should be migrated? (Easiest if don't need to provide for a database migration)

References http://stackoverflow.com/questions/6712123/deleting-core-data-version-xcdatamodel-files?noredirect=1&lq=1 http://stackoverflow.com/questions/7708392/how-to-delete-an-old-unused-data-model-version-in-xcode-4#8107530 http://stackoverflow.com/questions/32252330/failed-to-compile-core-data-model-in-xcode-7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

calferness commented 7 years ago

Here's what I'm guessing it is. We have a component in the app that calculates an estimated hemoglobin A1c, which is an important blood serum test performed on diabetics periodically that is a surrogate for an average BG over about a 3 month period. I developed an algorithm for estimating it. So, to test it, Chris loaded 90 days of bogus data (with a known result) into the app in the simulator just to check it. It testing code maybe has some issue. We don't really need to do that I don't think.

Sent from my iPhone

On Nov 4, 2016, at 5:51 AM, Steve Baker notifications@github.com wrote:

Data model is Model in Model View Controller MVC design pattern for iOS apps. App is using Core Data and Magical Record to store info in a database. I haven't looked, but probably this includes food and insulin, which then are used as inputs to physiologic model. Main question- can we ignore any existing user data on devices of people who currently have the app? It's simpler to not do a database migration that would preserve data when app is updated this time. If someone installs the update, this time they would lose their historical data.

Steve Baker

On Nov 3, 2016, at 10:32 PM, Clif Alferness notifications@github.com wrote:

Ok, I'll have to look into this and see if I can understand the issue. At this point, I don't even know what the data model is. I'll do that tomorrow. Went to an interesting thing at UW today. It's called Comotion. They had some really cool virtual reality demos. Clif

Clif Alferness 13143 Shoreline DR SE Olalla, WA, 98359 calferness@gmail.com

On Nov 3, 2016, at 9:15 PM, Steve Baker notifications@github.com wrote:

compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: Failed to read data model Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format" UserInfo={NSFilePath=compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format}

TODO: Consider delete old model file and regenerate. Does app have any previous users whose data should be migrated? (Easiest if don't need to provide for a database migration)

References http://stackoverflow.com/questions/6712123/deleting-core-data-version-xcdatamodel-files?noredirect=1&lq=1 http://stackoverflow.com/questions/7708392/how-to-delete-an-old-unused-data-model-version-in-xcode-4#8107530 http://stackoverflow.com/questions/32252330/failed-to-compile-core-data-model-in-xcode-7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

calferness commented 7 years ago

Ok, one would definitely not want to lose those data any time the app was changed & updated. The historical data (primarily BG readings and HA1c readings) get used and trend plots made of them. You'd like trends over months. At this point in time, there aren't any people with the app installed. I deleted it on my iPhone when it stopped working. I just bought a new iPhone a couple days ago. I've just been running it on simulator.

Sent from my iPhone

On Nov 4, 2016, at 5:51 AM, Steve Baker notifications@github.com wrote:

Data model is Model in Model View Controller MVC design pattern for iOS apps. App is using Core Data and Magical Record to store info in a database. I haven't looked, but probably this includes food and insulin, which then are used as inputs to physiologic model. Main question- can we ignore any existing user data on devices of people who currently have the app? It's simpler to not do a database migration that would preserve data when app is updated this time. If someone installs the update, this time they would lose their historical data.

Steve Baker

On Nov 3, 2016, at 10:32 PM, Clif Alferness notifications@github.com wrote:

Ok, I'll have to look into this and see if I can understand the issue. At this point, I don't even know what the data model is. I'll do that tomorrow. Went to an interesting thing at UW today. It's called Comotion. They had some really cool virtual reality demos. Clif

Clif Alferness 13143 Shoreline DR SE Olalla, WA, 98359 calferness@gmail.com

On Nov 3, 2016, at 9:15 PM, Steve Baker notifications@github.com wrote:

compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: Failed to read data model Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format" UserInfo={NSFilePath=compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from compass_rose-master/BGCompass/CompassRose.xcdatamodeld/._CompassRose.xcdatamodel: unknown model format}

TODO: Consider delete old model file and regenerate. Does app have any previous users whose data should be migrated? (Easiest if don't need to provide for a database migration)

References http://stackoverflow.com/questions/6712123/deleting-core-data-version-xcdatamodel-files?noredirect=1&lq=1 http://stackoverflow.com/questions/7708392/how-to-delete-an-old-unused-data-model-version-in-xcode-4#8107530 http://stackoverflow.com/questions/32252330/failed-to-compile-core-data-model-in-xcode-7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

luisMedrano commented 7 years ago

Hello Cliff,

I'm sorry I haven't be more responsive but has been a busy week.

I ran into the same issue with CompassRose.xcdatamodeld but I remove it from the project and it work but I'm running into some issues with the Pods:

RKObjectManager.h file not found (Pod) CorePlot-CocoaTouch.h file not found (Pod)

I'm still have the xcdatamodeld file but I'm just trying to figure out the state of project.

I'll try to update the pods this weekend but I'll keep you post it.

Cheers, Luis

beepscore commented 7 years ago

Fixed in git commits d481d99, 5e67f41