@vinamelody so youāve hit a couple of issues there! The first is that the table name logic was changed in a recent RC, which unhelpfully meant that existing tables didnāt match upā¦
The current issue youāre seeing is to do with the new reflection stuff that went in last night. Unfortunately it seems to have broken models that are classes
There isnāt much you can do at the moment apart from wait until it has been fixed. Itās all to do with how the layout of a class looks in memory and the fact that computed properties donāt have offsets, which has broken itā¦ Iāll post on here when it has fixed.
One final solution you have is to replace your Package.resolved
with the following:
{
"object": {
"pins": [
{
"package": "Auth",
"repositoryURL": "https://github.com/vapor/auth.git",
"state": {
"branch": null,
"revision": "af15d9b23a421d76754535447b8cb791d9ce5fc6",
"version": "2.0.0-rc.3"
}
},
{
"package": "Console",
"repositoryURL": "https://github.com/vapor/console.git",
"state": {
"branch": null,
"revision": "9b219b46ce0248924ed014c23bf8d4df05f2ad80",
"version": "3.0.0-rc.2.0.1"
}
},
{
"package": "Core",
"repositoryURL": "https://github.com/vapor/core.git",
"state": {
"branch": null,
"revision": "92cef8935fbeb16516b3c687ca3039fa5ce60860",
"version": "3.0.0-rc.2"
}
},
{
"package": "Crypto",
"repositoryURL": "https://github.com/vapor/crypto.git",
"state": {
"branch": null,
"revision": "5ea23edc6d3122655daf71756bc769c987a20b29",
"version": "3.0.0-rc.2"
}
},
{
"package": "DatabaseKit",
"repositoryURL": "https://github.com/vapor/database-kit.git",
"state": {
"branch": null,
"revision": "965d4c8ce376819456e0bc1a6c8f388b4d6555cd",
"version": "1.0.0-rc.2"
}
},
{
"package": "Engine",
"repositoryURL": "https://github.com/vapor/engine.git",
"state": {
"branch": null,
"revision": "6a7ca70b6858a0ac8a5c48359c80a3c37f46b47e",
"version": "3.0.0-rc.2"
}
},
{
"package": "Fluent",
"repositoryURL": "https://github.com/vapor/fluent.git",
"state": {
"branch": null,
"revision": "9e684c00fc2bd1fd1adaaad5f6ae29beac7b0364",
"version": "3.0.0-rc.2"
}
},
{
"package": "FluentMySQL",
"repositoryURL": "https://github.com/vapor/fluent-mysql.git",
"state": {
"branch": null,
"revision": "e941ebbb989a22a9dd15360681d7a511354d4ee7",
"version": "3.0.0-rc.2"
}
},
{
"package": "Leaf",
"repositoryURL": "https://github.com/vapor/leaf.git",
"state": {
"branch": null,
"revision": "e0c8bb646556aefdaed907e48a8435655c59bab3",
"version": "3.0.0-rc.2"
}
},
{
"package": "MySQL",
"repositoryURL": "https://github.com/vapor/mysql.git",
"state": {
"branch": null,
"revision": "4057d62f5576e305b6ff4b99fc3dd2eca24497a7",
"version": "3.0.0-rc.2"
}
},
{
"package": "Routing",
"repositoryURL": "https://github.com/vapor/routing.git",
"state": {
"branch": null,
"revision": "2fc1d4de22a54848b35ad17b3e7f7816f19ebf90",
"version": "3.0.0-rc.2"
}
},
{
"package": "Service",
"repositoryURL": "https://github.com/vapor/service.git",
"state": {
"branch": null,
"revision": "8ade63fc255a184ec16a1c66562b837f2b5db83f",
"version": "1.0.0-rc.2"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "320561f4371d32c74a12158d2e18f220703fe32c",
"version": "1.2.1"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "85a55f91bf80afa96889426962f0e0369fae9187",
"version": "1.0.0"
}
},
{
"package": "swift-nio-ssl-support",
"repositoryURL": "https://github.com/apple/swift-nio-ssl-support.git",
"state": {
"branch": null,
"revision": "c02eec4e0e6d351cd092938cf44195a8e669f555",
"version": "1.0.0"
}
},
{
"package": "swift-nio-zlib-support",
"repositoryURL": "https://github.com/apple/swift-nio-zlib-support.git",
"state": {
"branch": null,
"revision": "37760e9a52030bb9011972c5213c3350fa9d41fd",
"version": "1.0.0"
}
},
{
"package": "TemplateKit",
"repositoryURL": "https://github.com/vapor/template-kit.git",
"state": {
"branch": null,
"revision": "ef940383716d05ac6e1b0dcb0ba672c7c0f8a718",
"version": "1.0.0-rc.2.0.1"
}
},
{
"package": "Validation",
"repositoryURL": "https://github.com/vapor/validation.git",
"state": {
"branch": null,
"revision": "361140562d87385df49fdb36e96841c0a92d59ae",
"version": "2.0.0-rc.2"
}
},
{
"package": "Vapor",
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "5f757a9a47c494af030d1ab7f82911e140682f9d",
"version": "3.0.0-rc.2"
}
}
]
},
"version": 1
}
Then run rm -rf .build TIL.xcodeproj
. That will remove everything and give you a working version set (I think). If you run vapor xcode -y
that should use that file so you can keep going until the issue gets fixed.