Deploying Simple Project in Xcode to iOS Fails

I have been trying to get a Unity app to deploy properly onto my iPad Air. I have tried three different apps, one that I have been developing, Angry Bots, and a simple scene with a cube in it. They all build successfully, but give me this error when deployed and run on the device:

2014-02-13 16:44:09.273 ProductName[4184:60b] → registered mono modules 0xf00d20
→ applicationDidFinishLaunching()
→ applicationDidBecomeActive()
Mono path[0] = ‘/var/mobile/Applications/45F2FDC0-8EC7-4D78-9B40-869CF57FEE14/ProductName.app/Data/Managed’
Mono config path = ‘/var/mobile/Applications/45F2FDC0-8EC7-4D78-9B40-869CF57FEE14/ProductName.app/Data/Managed’
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/var/mobile/Applications/45F2FDC0-8EC7-4D78-9B40-869CF57FEE14/ProductName.app/Data/Managed/mono/2.0/mscorlib.dll’ directory.

I’ve looked around the web and have tried to delete the derived data folder as well as play with different settings. I don’t have stripping turned on. I am using Mac OS X Mavericks 10.9.1, Xcode 5.0.2 and its command line tools are installed, and Unity 4.3.4.

I have tried looking for the folder /var/mobile/Applications/45F2FDC0-8EC7-4D78-9B40 869CF57FEE14/ProductName.app/Data/Managed/mono/2.0/ and it does not exist. I am not sure why Xcode is trying to find a .dll there.

One other thing is that my derived data is currently set to the default location. I have also tried changing that with no success.

Does anyone have an idea of what could be going wrong?

I found a solution for getting Xcode to copy the Data file over to the app when building, although there may be a better one. This link helped me:

http://stackoverflow.com/questions/19163124/use-xcode-copy-files-build-phase-to-copy-an-entire-directory

This is what worked for me:

  1. Right click your project file in the project explorer
  2. Click "Add files to ‘Project Name’ "
  3. Find your “Data” file, which should be in the Xcode project that Unity generated
  4. For the “Folders” option, click the radio button that says “Create folder references for any added folders” and then click “Add”
  5. In your Target, click “Build Phases”
  6. Under “Copy Bundle Resources”, check to make sure the “Data” file is in there. If not add it.