Skip to content

Remove Orphan CoreData files preventing use of Tuist - #65

Merged
ABTastyAdel merged 2 commits into
flagship-io:cleanRepofrom
TMD-DX-Mobile:master
Sep 28, 2026
Merged

ABTastyAdel merged 2 commits into
flagship-io:cleanRepofrom
TMD-DX-Mobile:master

Conversation

@pakko972

@pakko972 pakko972 commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR remove several files not used in the SDK.
These files was introduced by f754cbd dubbed "add sqlite3"

I think they was leftovers of trying to use CoreData, but in fine, SQLite3 was preferred.

The issue it brings:
When we use Tuist dependency integration, the following error is thrown:

You can use this minimal repository to reproduce: https://github.com/pakko972/flagship-prevents-tuist-generate

brew install tuist

tuist install

Resolving and fetching plugins.
Resolving and fetching dependencies.
Fetching https://github.com/flagship-io/flagship-ios.git from cache
Fetched https://github.com/flagship-io/flagship-ios.git from cache (0.02s)
Creating working copy for https://github.com/flagship-io/flagship-ios.git
Working copy of https://github.com/flagship-io/flagship-ios.git resolved at 3.3.5
✔ Success
Plugins resolved and fetched successfully.

tuist generate

Loading and constructing the graph
It might take a while if the cache is empty
✖ Error
Couldn't read the xccurrentversion from path /Users/f19876/Developer/temp/flagship-prevents-tuist-generate/Tuist/.build/checkouts/flagship-ios/FlagShip/Source/Cache/FSDataModel.xcdatamodeld. Try setting the current version manually or check if the current version is set it in your project.

Sorry this didn’t work. Here’s what to try next:
▸ If the error is actionable, address it
▸ If the error is not actionable, let's discuss it in the Troubleshooting & how to
▸ If you are very certain it's a bug, file an issue
▸ Check out the logs at /Users/f19876/.local/state/tuist/sessions/733F3AD4-71C2-4E50-9FB4-D8F076AC3439/logs.txt

Workaround: Removing the files make the error go away

rm -rf Tuist/.build/checkouts/flagship-ios/FlagShip/Source/Cache/FSModel.xcdatamodeld
rm -rf Tuist/.build/checkouts/flagship-ios/FlagShip/Source/Cache/FSDataModel.xcdatamodeld
tuist generate
  Loading and constructing the graph
  It might take a while if the cache is empty
  Using cache binaries for the following targets: 
  Generating workspace DemoApp.xcworkspace
  Generating project Flagship
  Generating project DemoApp
  Total time taken: 0.827s
  ✔ Success 
    Project generated.                                                                                                                                                                                         

@sonarqubecloud

Copy link
Copy Markdown

@pakko972

Copy link
Copy Markdown
Contributor Author

Hi, @ABTastyAdel could you please have a look :)

@ABTastyAdel ABTastyAdel reopened this Sep 28, 2026
@sonarqubecloud

Copy link
Copy Markdown

@ABTastyAdel

Copy link
Copy Markdown
Collaborator

Hello, thanks for this contribution. Can you please tell me the current version of the flagship you're using in the app

@ABTastyAdel
ABTastyAdel changed the base branch from master to cleanRepo September 28, 2026 10:46
@ABTastyAdel
ABTastyAdel merged commit 9e2e960 into flagship-io:cleanRepo Sep 28, 2026
10 of 12 checks passed
@pakko972

Copy link
Copy Markdown
Contributor Author

Hello @ABTastyAdel, right now we're on 3.3.5 but we could bump to the latest version

@ABTastyAdel

ABTastyAdel commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Hello @pakko972 thx for cleaning the unused files. I created a ticket, and we will release new patch version 5.0.1.
An update to the latest version would be great.

There is break change from version 3 to version 5

Your PR is now merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants