Bug 15359 - SpringBoard failed to launch application with error: 4
Summary: SpringBoard failed to launch application with error: 4
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.4.x
Hardware: PC Mac OS
: High normal
Target Milestone: 1.12 (Merge)
Assignee: Jose Miguel Torres
URL:
Depends on:
Blocks:
 
Reported: 2013-10-11 11:59 UTC by Allie Miller
Modified: 2016-05-10 17:05 UTC (History)
14 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Trace Log from Case #48768 (818.16 KB, application/octet-stream)
2013-10-11 11:59 UTC, Allie Miller
Details
Info from case 50333 (7.23 KB, application/zip)
2013-11-04 21:42 UTC, Jon Goldberger [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Allie Miller 2013-10-11 11:59:39 UTC
Created attachment 5128 [details]
Trace Log from Case #48768

When attempting to deploy to the iOS 7 simulator from Visual Studio, the app fails to deploy to the simulator. Upon further inspection of the mtbserver log, the following appears in the mtbserver log:

[11-Oct-2013 15:51:58] Handling with command: [StartDebugProxy: CommmandUrl=StartDebugProxy] (28)
[11-Oct-2013 15:51:58] Attempting to acquire command execution lock, timeout set to 00:10:00
[11-Oct-2013 15:51:58] WaitForAppConnected Waited!
[11-Oct-2013 15:51:58] Command [DebugApplication: CommmandUrl=DebugApplication] finished (22)
[11-Oct-2013 15:51:58] Command [StartDebugProxy: CommmandUrl=StartDebugProxy] finished (28)
[11-Oct-2013 15:51:58] Handling with command: [ChangeActiveApplication: CommmandUrl=ChangeActiveApplication] (28)
[11-Oct-2013 15:51:58] Attempting to acquire command execution lock, timeout set to 00:10:00
[11-Oct-2013 15:51:58] Command [ChangeActiveApplication: CommmandUrl=ChangeActiveApplication] finished (28)
[11-Oct-2013 15:51:58] Got connection from Visual Studio : Waiting application... (output)
[11-Oct-2013 15:51:58] Got connection from Visual Studio: (sdb)
[11-Oct-2013 15:51:58] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[11-Oct-2013 15:51:58] stdout: 9f7d3ea7adf0e6d7426d096c6aa5bdc539fd0040 MonoTouch Business 2014-10-11T11:11:56

[11-Oct-2013 15:51:58] Handling with command: [DebugApplication: CommmandUrl=DebugApplication] (9)
[11-Oct-2013 15:51:58] Attempting to acquire command execution lock, timeout set to 00:10:00
[11-Oct-2013 15:51:58] WaitForAppConnected
[11-Oct-2013 15:51:58] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --devname "iPhone 7.0" --launchsim "/Users/lakr1/Library/Caches/Xamarin/mtbs/builds/EdgeMobile/a66ee36b-c4e6-4906-8cfa-cc3bb191d318/output/Debug/iPhoneSimulator/EdgeMobile.app" -stdout "/Users/lakr1/Library/Logs/Xamarin/MonoTouchVS/Simulator/EdgeMobile/a66ee36b-c4e6-4906-8cfa-cc3bb191d318/out.log" -stderr "/Users/lakr1/Library/Logs/Xamarin/MonoTouchVS/Simulator/EdgeMobile/a66ee36b-c4e6-4906-8cfa-cc3bb191d318/err.log" --device 1 -argument=-monodevelop-port -argument=49721 -sdk 7.0
[11-Oct-2013 15:52:10] stderr: warning MT0001: '-devname' was provided without any device-specific action

[11-Oct-2013 15:52:10] stdout: Starting iOS simulator 7.0
Launching application
ERR: There was an error launching the application: SpringBoard failed to launch application with error: 4

The project deploys successfully to the iOS Simulator from Xamarin Studio on the Mac workstation.

Setting the Bundle Identifier does not resolve the issue.

Attached is the Trace log from Visual Studio.

Versioning Information:
Visual Studio
Microsoft Visual Studio Premium 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50709
Xamarin.Android   4.8.01013 (b76e8ec4)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.3.250 (49348a51)
Visual Studio extension to enable development for Xamarin.iOS

=== Xamarin Studio ===

Version 4.0.12 (build 3)
Installation UUID: 5e065c62-6d2d-494a-b243-eb14fbf3129c
Runtime:
	Mono 3.2.3 ((no/8d3b4b7)
	GTK 2.24.20
	GTK# (2.12.0.0)
	Package version: 302030000

=== Apple Developer Tools ===

Xcode 5.0 (3332.25)
Build 5A1413

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: 7.0.1.4 (Business Edition)
Hash: 4cfca2f
Branch: 
Build date: 2013-20-09 23:14:32-0400

=== Xamarin.Android ===

Version: 4.8.1 (Starter Edition)
Android SDK: /Users/lakr1/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

=== Build Information ===

Release ID: 400120003
Git revision: 593d7acb1cb78ceeeb482d5133cf1fe514467e39
Build date: 2013-08-07 20:30:53+0000
Xamarin addins: 25a0858b281923e666b09259ad4746b774e0a873

=== Operating System ===

Mac OS X 10.8.4
Darwin MacLars.local 12.4.2 Darwin Kernel Version 12.4.2
    Mon Jun 17 18:00:12 PDT 2013
    root:xnu-2050.45.8~1/RELEASE_X86_64 x86_64
Comment 2 Ricky Helgesson 2013-10-21 00:50:25 UTC
I also get:
ERR: There was an error launching the application: SpringBoard failed to launch application with error: 4

I am running Windows 8 through Parallells 9 on a Mac Book Pro running Mac OS X 10.8.4. I have XCode Version 5.0 (5A1413) and the latest Xamarin tools from the Stable channel installed on the Mac and on the Windows machine.

Please tell me if you need more information form my environment.
Comment 3 Jose Miguel Torres 2013-10-25 11:05:22 UTC
Andrew Way reported that after updating MTVS to 1.4 fixed that issue. Since we haven't detected such errors in the nearly next release I am about to mark this bug as fixed.

Please feel free to reopen it if similar symptoms/traces are detected.
Comment 5 Jon Goldberger [MSFT] 2013-11-04 21:42:10 UTC
Created attachment 5337 [details]
Info from case 50333
Comment 6 Jon Goldberger [MSFT] 2013-11-04 21:43:14 UTC
More from 50333:

I am not able to debug any iOS applications from Visual Studio 2012. I
even tried the Xamarin Hello World sample located
here<http://docs.xamarin.com/guides/ios/getting_started/hello,_world/Resources/HelloWorld_iPhone.zip>,
and it doesn't work.

Below are my steps to reproduce using the Xamarin Hello World sample
unmodified:

1. Open HelloWorld_iPhone.sln
2. Select Debug configuration
3. Select the iPhoneSimulator simulator
4. Click the Start button
5. It builds, connects to the Mac host
6. The iOS Simulator is launched on the Mac but no app is copied to it
or launched
7. Then an error message appears in the Visual Studio Error List
8. Visual Studio never actually exits debug on its own (you guys should
stop debugging on fatal errors like this)

I have attached ZIP file that contains all logs I could get from your
process via the Visual Studio output window. Also the ZIP contains the
error messages, and my Xamarin Studio configuration settings from the Mac
and Windows, as well as my Visual Studio configuration settings.

What I have tried to resolve this was google for this issue, and I only
found forum posts with this issue and clearing the iOS Simulator cache
worked for them but didn't work for me. To do this I opened the iOS
Simulator menu and clicked Reset Content and Settings. This step deleted
the "~/Library/Application Support/iPhone Simulator/7.0.3" folder and
recreate it.
Comment 7 neosoong 2013-11-05 02:42:49 UTC
I am not able to run any iOS applications from Visual Studio 2012 anymore. always got this error: "SpringBoard failed to launch application with error: 4"

If i copy this project to my Mac machine, use Xamarin IDE to open and run this iOS application on simulator, it works very well.


I belive i have the latest Xamarin.iOS version(both on my windows and Mac machine) as:
Xamarin.Android   4.8.01013 (b76e8ec4)
Xamarin.iOS   1.4.2 (7e177260)


The Mac server log as:
------------------------
[2013-11-05 15:41:01.4] Handling with command: [StatusSdk: CommmandUrl=StatusSdk] (9)
[2013-11-05 15:41:01.4] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:15.0] monotouch.xml
[2013-11-05 15:41:15.0] OpenTK.xml
[2013-11-05 15:41:15.0] MonoTouch.Dialog-1.xml
[2013-11-05 15:41:15.2] MonoTouch.NUnitLite.xml
[2013-11-05 15:41:15.2] NamespaceSummaries.xml
[2013-11-05 15:41:19.7] Using https://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone6.1.atom
[2013-11-05 15:41:20.2] Warning: Fail to find installed version documentation path.
[2013-11-05 15:41:20.2] Apple Docs need to be updated.
[2013-11-05 15:41:20.2] Command [StatusSdk: CommmandUrl=StatusSdk] finished (9)
[2013-11-05 15:41:29.5] Handling with command: [Info: CommmandUrl=Info] (11)
[2013-11-05 15:41:29.5] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:29.5] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --listdev
[2013-11-05 15:41:30.4] Starting /Developer/MonoTouch/usr/bin/mtouch --version
[2013-11-05 15:41:30.7] stdout: mtouch 6.4.0.2 (c9f7659)
[2013-11-05 15:41:30.9] 
[2013-11-05 15:41:30.9] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:31.5] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:31.7] 
[2013-11-05 15:41:31.7] Command [Info: CommmandUrl=Info] finished (11)
[2013-11-05 15:41:31.7] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:32.3] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:32.5] 
[2013-11-05 15:41:32.5] Current MonoTouch license is valid
[2013-11-05 15:41:32.5] Handling with command: [FileManifest: CommmandUrl=FileManifest] (10)
[2013-11-05 15:41:32.5] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:32.5] Command [FileManifest: CommmandUrl=FileManifest] finished (10)
[2013-11-05 15:41:32.7] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:33.3] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:33.5] 
[2013-11-05 15:41:33.5] Handling with command: [UploadChanges: CommmandUrl=UploadChanges] (10)
[2013-11-05 15:41:33.5] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:33.5] Command [UploadChanges: CommmandUrl=UploadChanges] finished (10)
[2013-11-05 15:41:33.5] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:34.2] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:34.4] 
[2013-11-05 15:41:34.4] Handling with command: [Build: CommmandUrl=Build] (10)
[2013-11-05 15:41:34.4] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:34.4] 	Running tool: DebugInformationConverter
[2013-11-05 15:41:34.4] Starting pdb2mdb "HelloWorld_App2.exe"
[2013-11-05 15:41:34.4] 	Running tool: PreBuildFixups
[2013-11-05 15:41:34.4] 	Running tool: ContentCopier
[2013-11-05 15:41:34.6] Copying '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/bundle/HelloWorld_App2.app/Resources/Default.png' to '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/Debug/iPhoneSimulator/HelloWorld_App2.app/Default.png'
[2013-11-05 15:41:34.6] Copying '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/bundle/HelloWorld_App2.app/Resources/Default@2x.png' to '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/Debug/iPhoneSimulator/HelloWorld_App2.app/Default@2x.png'
[2013-11-05 15:41:34.6] Copying '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/bundle/HelloWorld_App2.app/Resources/Default-568h@2x.png' to '/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/Debug/iPhoneSimulator/HelloWorld_App2.app/Default-568h@2x.png'
[2013-11-05 15:41:34.6] 	Running tool: TrialCheckChanges
[2013-11-05 15:41:34.6] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:35.3] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:35.5] 
[2013-11-05 15:41:35.5] Resource Names : System.String[]
[2013-11-05 15:41:35.5] 	Running tool: Mtouch
[2013-11-05 15:41:35.5] Starting /Developer/MonoTouch/usr/bin/mtouch -v -sdkroot "/Applications/Xcode.app/Contents/Developer" --cache "/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/temp/mtouch-cache" --nomanifest --nosign -sim "/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/Debug/iPhoneSimulator/HelloWorld_App2.app" -debug -nolink -sdk "7.0" -targetver "3.2" --abi=armv7 "/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/assemblies/HelloWorld_App2.exe"
[2013-11-05 15:41:36.4] stdout: MonoTouch Trial version 6.4.0 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
[2013-11-05 15:41:36.4] HelloWorld_App2.app built successfully.
[2013-11-05 15:41:36.6] 
[2013-11-05 15:41:36.6] 	Running tool: EmbeddedResourcesUnpacker
[2013-11-05 15:41:36.6] 	Running tool: IBTool
[2013-11-05 15:41:36.6] 	Running tool: InfoPlistBuilder
[2013-11-05 15:41:36.6] Warning: No valid iPhone code signing keys found in keychain. 
[2013-11-05 15:41:36.6] 	No provisioning profile
[2013-11-05 15:41:36.6] Warning: Application icons have not been set in /Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/bundle/HelloWorld_App2.app/Info.plist
[2013-11-05 15:41:36.6] Warning: Supported iPhone orientations are not matched pairs in /Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/bundle/HelloWorld_App2.app/Info.plist
[2013-11-05 15:41:36.6] Warning: Supported iPhone orientations are not matched pairs
[2013-11-05 15:41:36.6] 	Running tool: DebugConfigFileBuilder
[2013-11-05 15:41:36.6] 	Running tool: DebugSettingsManifestBuilder
[2013-11-05 15:41:36.6] 	Running tool: PosBuildFixups
[2013-11-05 15:41:36.6] 	Running tool: OptimizePng
[2013-11-05 15:41:36.6] 	Running tool: Packager
[2013-11-05 15:41:36.6] Command [Build: CommmandUrl=Build] finished (10)
[2013-11-05 15:41:36.8] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:37.5] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:37.8] 
[2013-11-05 15:41:37.8] Handling with command: [StartDebugProxy: CommmandUrl=StartDebugProxy] (12)
[2013-11-05 15:41:37.8] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:37.8] Command [StartDebugProxy: CommmandUrl=StartDebugProxy] finished (12)
[2013-11-05 15:41:37.8] Got connection from Visual Studio : Waiting application... (output)
[2013-11-05 15:41:37.8] Got connection from Visual Studio: (sdb)
[2013-11-05 15:41:38.2] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --entitlements
[2013-11-05 15:41:38.8] stdout: bb725788d13216a87200ce1a6f279692046d01b3 MonoTouch TRIAL 2013-11-11T04:08:22
[2013-11-05 15:41:39.0] 
[2013-11-05 15:41:39.0] Handling with command: [DebugApplication: CommmandUrl=DebugApplication] (13)
[2013-11-05 15:41:39.0] Attempting to acquire command execution lock, timeout set to 00:10:00
[2013-11-05 15:41:39.0] WaitForAppConnected
[2013-11-05 15:41:39.0] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --devname "iPhone 7.0" --launchsim "/Homes/UX/Library/Caches/Xamarin/mtbs/builds/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/output/Debug/iPhoneSimulator/HelloWorld_App2.app" -stdout "/Homes/UX/Library/Logs/Xamarin/MonoTouchVS/Simulator/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/out.log" -stderr "/Homes/UX/Library/Logs/Xamarin/MonoTouchVS/Simulator/HelloWorld_App2/43e22010-9c92-43ab-8024-1046dea6e5d9/err.log" --device 1 -argument=-monodevelop-port -argument=50189 -sdk 7.0
[2013-11-05 15:41:53.6] stderr: warning MT0001: '-devname' was provided without any device-specific action
[2013-11-05 15:41:53.8] 
[2013-11-05 15:41:53.8] stdout: Starting iOS simulator 7.0
[2013-11-05 15:41:53.8] Launching application
[2013-11-05 15:41:53.8] ERR: There was an error launching the application: SpringBoard failed to launch application with error: 4
[2013-11-05 15:41:53.8] 
------------------------
Comment 8 Alan McGovern 2013-11-07 19:18:23 UTC
I believe the root cause of this issue is that the app bundle being deployed has an Info.plist file which is missing either an Application Name or a Bundle Identifier. If you open the Info.plist editor and fill in this information and reset your iOS simulator back to it's defaults, everything should work for you.

Applications which are missing these required values will have a build failure in future releases of the extension.

If this does not fix the issue, do let me know.
Comment 9 Alan McGovern 2013-11-14 11:25:35 UTC
Marking this as fixed as the only known cause of this issue has been addressed and the fix was released in 1.8.
Comment 10 neosoong 2013-11-14 23:30:59 UTC
Great, thanks, solve my issue!
Comment 11 Prashant manu 2014-02-04 08:24:55 UTC
I have checked this issue with following builds:

All Windows
VS 2013/2012
Xamarin for VS 4.12.207
X.iOS 7.1.4.3

I am successfully able to deploy and launch application on iOSSimulator 7.0 on build host.