I'm trying to submit an app to the mac App Store, but every time I do, after I upload the binary with no problems I get an email saying this
"App sandbox not enabled - The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list. Refer to the App Sandbox page for more information on sandboxing your app."
I checked the entitlements box and sandbox box in target summary and I have an entitlements file, but when I build for archiving the box unchecks automatically and locks. Then when I build for running it unlocks and I can check it again. I've been searching everywhere for an answer but nothing has worked for me.