- Home /
Problem with deploying to device/simulator?
I get this error whenever I try building my Unity game for iOS:
I don't get why though, because earlier last night this exact build was working perfectly fine. I tried clearing out the build directory and even going so far as to create a whole new Project and try building that, but it still doesn't work. Anybody know what the problem is? It seems to have to do something with my iPhone being on iOS 4.3.1, and apparently Unity only supports iOS 4.2? But it was working perfectly on my iOS 4.3.1 iPad and iPhone 4 last night so I don't know what's going on.
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000 target remote-mobile /tmp/.XcodeGDBRemote-48883-25 Switching to remote-macosx protocol mem 0x1000 0x3fffffff cache mem 0x40000000 0xffffffff none mem 0x00000000 0x0fff none [Switching to process 11779 thread 0x0] [Switching to process 11779 thread 0x0] sharedlibrary apply-load-rules all warning: Unable to read symbols for /Users/barabsky/Documents/Stuff/Unity/HelloWorld.app/HelloWorld (file not found). 2011-04-05 15:56:17.465 HelloWorld[1274:707] -> registered mono modules warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.1 (8G4)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader (file not found). -> applicationDidFinishLaunching() * Assertion: should not be reached at tramp-arm.c:724
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.1 (8G4)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found). (gdb)
Answer by Henrique Vilela · May 05, 2011 at 07:19 PM
When you first build a project for IOS with XCode 4 it selects the "Simulator" target to run on the real device. On the top left corner (on the left of the stop button) select Unity-Iphone instead of Unity-Iphone-Simulator. That may fix it.
Yep, I got caught by this one too. That does fix it in my project.
Doh, I just got caught by this too - they are so similarly named! (especially early in a morning!)
Answer by Ben Holmes · Apr 06, 2011 at 12:12 AM
which iOS version are your build settings set to deploy to? It should work if set to 4.2 and later. Setting it to 4.2 only will not work.
In the "Optimization" part of the iOS Player settings in Unity, I have it like so:
API Compatibility Level: .NET 2.0 Subset SD$$anonymous$$ Version: iOS Latest (since 4.2) Target iOS Version: iOS 4.0 Stripping Level: Disabled
To my knowledge (As a past iOS-developer), the "SD$$anonymous$$ Version" is the version that should be built on and "Target iOS Version" is the lowest iOS version the app can be run on. Am I mistaken?
the SD$$anonymous$$ version is the version of the SD$$anonymous$$ which you are currently using which means it is the highest version of the iOS which can be built to. I believe the Target iOS version should be the highest, not the lowest. Targetting iOS 4.0 will probably cause problems on 4.3. Try setting it to iOS latest (since 4.2) just like your SD$$anonymous$$ version.
Your answer
![](https://koobas.hobune.stream/wayback/20220613120950im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problems Unity to Xcode? 2 Answers
Bad Access Error 0 Answers
Unity iOS sdk question 1 Answer
Splash screen orientation - iOS 2 Answers
Unity steals back focus when using Prime31 social plugin iOS 0 Answers