Swift Operation not permitted for AWS Lambda

same question:
https://stackoverflow.com/questions/73032777/aws-lambda-swift-operation-not-permitted/76331901#76331901

I have a question about compiling Swift in AWS Lambda. Lambda has a read-only file system, and I am getting a permission error when I try to create a compiled file in the /tmp directory. It seems like Swift's compilation process writes to other locations besides the specified path, but I can't find any way to fix this. Can you help me?

I hope this is helpful! Let me know if you have any other questions.