Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set INDEX_ENABLE_DATA_STORE=YES in compiler settings #652

Merged

Conversation

garry-jeromson
Copy link
Contributor

We were experiencing the same issue as described in #585: our build setup includes multiple schemes which reference xcconfig files, and Periphery always failed out of the box with the error message Failed to find index datastore at path. Looking into the DerivedData folder after the build, it was clear that error message was correct: the Index (or Index.noindex) directory was simply not being created when a build was run via Periphery, in spite of COMPILER_INDEX_STORE_ENABLE being set to YES.

By some miracle of random Googling, trial and error, and examining build logs, we came across the INDEX_ENABLE_DATA_STORE compiler setting. Lo and behold: by setting this to YES, Periphery works with our project without any issues.

I'm a bit wary of creating this PR, since I don't fully understand the interaction between COMPILER_INDEX_STORE_ENABLE and INDEX_ENABLE_DATA_STORE. I couldn't find any reliable documentation at all on INDEX_ENABLE_DATA_STORE - it's only mentioned indirectly on xcodebuildsettings.com here. Nonetheless: it works, and maybe it will solve some compatibility issues for others experiencing something similar to #585.

@ileitch
Copy link
Contributor

ileitch commented Sep 8, 2023

Thanks, I wasn't aware of this setting!

@ileitch ileitch merged commit b7da434 into peripheryapp:master Sep 8, 2023
4 checks passed
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.

2 participants