Codea app not archiving [RESOLVED]

I’m trying to release my app on TestFlight today, but my app doesn’t seem to archive. I’m using the latest version of Codea. The only things I did to the engine was added the security framework, added @Reefwing’s music code, added the AVFoundation framework, and added my icons.
I’ve made sure that “Skip install” is set to no on the project and yes on the target and the “Install directory” is set to “/Applications” under the target. I haven’t touched the “Copy headers” section, and all sections are empty. I don’t know if that matters.
Any help would be great.
EDIT: I don’t know how I missed it, but it seems that the installation directory was not set to the correct directory.

Update: So when I archive it, my app is creating the .xcarchive files, but they have 0 bytes. There doesn’t seem to be any answers on the web to my question that work. @Simeon, is there any chance you could help?