Ifstream & Logic Pro X

    ...
    ifstream filelic("/Library/Application/ReadMe.TXT");
    if (!filelic.is_open())
    {
    ..
}

It crashed validation on Logic Pro X

The problem is that as soon as I try to specify the path, some tricks with plugin validation begin…why?

    ...
    ifstream filelic; 
    if (!filelic.is_open())
    {
    ..
}

https://developer.apple.com/documentation/security/app_sandbox

Is there any solution if, for example, we want to read files that have been installed in a certain folder or change the path?

You have to store stuff in sandbox safe locations there is not an alternative

For example (iZopope): /Library/Application\ Support/iZopope/Neoferb/*

My SuperPug: Library/Application\ Support/My SuperPug/*

How do they store the files there in such a case?