Open file failures with 'operation not permitted' on iOS

I have a Go project that then compiles into an iOS library to use in an iOS project. When I open files in this library, I occasionally get an error: “open ***.json: operation not permitted”