- Home /
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 figured out partially why this is happening. For some reason my data folder (the one that contains the levels and dlls) is not being included in the app build. The app will work if I manually copy the data file over to where the app is being built in the Derived Data folder. Does that mean there is something wrong with the way my Xcode project is configured?
Answer by dbrandt · Feb 14, 2014 at 08:54 PM
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:
This is what worked for me:
Right click your project file in the project explorer
Click "Add files to 'Project Name' "
Find your "Data" file, which should be in the Xcode project that Unity generated
For the "Folders" option, click the radio button that says "Create folder references for any added folders" and then click "Add"
In your Target, click "Build Phases"
Under "Copy Bundle Resources", check to make sure the "Data" file is in there. If not add it.
Your answer
Follow this Question
Related Questions
"Culture name neutral is not supported" when using Parse.Unity.dll 2 Answers
iOS.RemoteNotification userInfo empty 2 Answers
Bad Access Error in DisplayManager.mm 1 Answer
Game Center Login ignores Unity default orientation, resets project to devices orientation 0 Answers
Compile Error in XCode with Unity SplashScreenController/UnityViewControllerBase for IOS build 0 Answers