If you are using Xcode 15 or the latest code version try to set "No" for the "User Scripting sandbox" option on build Settings.