Bug 37937 - "The application UnifiedSingleViewIphone1 needs to be rebuilt due to an inconsistency between the connected Mac and the local app" when the active iOS project configuration is named "Debug (Dev)" (or any name containing a space) rather than "Debug"
Summary: "The application UnifiedSingleViewIphone1 needs to be rebuilt due to an incon...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Brendan Zagaeski (Xamarin Team, assistant)
URL:
: 37911 ()
Depends on:
Blocks: 36059
  Show dependency tree
 
Reported: 2016-01-22 21:27 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-10-29 00:15 UTC (History)
9 users (show)

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


Attachments
Test case (13.43 KB, application/zip)
2016-01-22 21:27 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-22 21:27:41 UTC
Created attachment 14685 [details]
Test case

"The application UnifiedSingleViewIphone1 needs to be rebuilt due to an inconsistency between the connected Mac and the local app" when the active iOS project configuration is named "Debug (Dev)" rather than "Debug"




## Workaround

Rename the "Debug (Dev)" project configuration back to "Debug". For example, in the attached test case edit the `.csproj` file in a text editor and change:

> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug (Dev)|iPhoneSimulator' ">

to:

> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">




## Steps to replicate

(If you like you can explicitly delete the "$HOME/Library/Caches/Xamarin/mtbs/builds" folder on the Mac before these steps to help prove that left-over files are not involved in this .)


1. Open the attached test case in Visual Studio.


2. Make sure that "Build -> Configuration Manager" is set to:

> Active solution configuration: Debug
> Active solution platform: iPhoneSimulator


3. Ensure that VS is fully paired to the Mac build host.


4. Attempt to build and run the app.




## Results

The application fails to launch on the simulator. The following error appears in the Error List and in the "Output -> Debug" window:

> The application UnifiedSingleViewIphone1 needs to be rebuilt due to an inconsistency between
> the connected Mac and the local app. Please rebuild the application and try
> again.




## Version info (brief)

XamarinVS 4.0.1.74 (9f3b5a0) + Xamarin.iOS 9.4.1.23 (7f1cef9)
("Cycle 6 – Service Release 1, Beta 1")
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-22 21:36:19 UTC
*** Bug 37911 has been marked as a duplicate of this bug. ***
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2016-02-24 21:31:00 UTC
## For any customers watching the bug report

It seems the core of the problem is when there is a space in the configuration name. I have updated the summary slightly to make the wording more general.

(See for example Bug 36059, Comment 38, where the problematic configuration name was "Debug iPhone" rather than just "Debug".)
Comment 6 Daniel Hindrikes 2016-02-26 09:43:26 UTC
I have the same problem and I doesn't have any space in the configuration name.
Comment 7 web 2016-02-26 09:48:58 UTC
Any other character that isn't allowed on Mac?
Comment 8 Daniel Hindrikes 2016-02-26 09:50:16 UTC
My configuration is the standard Debug
Comment 9 web 2016-02-26 09:52:33 UTC
I found my problem looking on the path, which is used on the Mac. Found it in the output window in VS2015. But perhaps this isn't your problem.
Comment 10 Brendan Zagaeski (Xamarin Team, assistant) 2016-02-26 19:57:48 UTC
@Daniel, one other known cause of the "inconsistency" error is Bug 37600. If the folder permissions correction mentioned on that bug also does not solve the problem, please send in an email via "Business & Enterprise Support" [1] for further one-on-one troubleshooting. Thanks!

[1] https://xamarin.com/support
Comment 12 mag@xamarin.com 2016-04-18 17:17:42 UTC
I tested the attached solution with the latest master and cycle7, and I'm not able to reproduce the issue anymore. The app is building and launching fine with Debug - iPhoneSimulator. Please verify
Comment 13 martin 2016-05-01 17:47:40 UTC
I'm also getting this error running on two different machnines connecting to one mac. I get this error in vs2013 and vs2015.

Both suggested solutions "white space" and "permissions" do not work. 

I'm hitting this on the current stable and the current beta chanel.
Comment 14 martin 2016-05-01 18:02:13 UTC
Just checked, error also persists in alpha chanel.
Comment 16 Brendan Zagaeski (Xamarin Team, assistant) 2016-10-29 00:14:23 UTC
## Verification status: Verified fixed in Cycle 7


1. Re-confirmed the old bad behavior using the test case from Comment 0:

> BAD:  XamarinVS 4.0.4.4   (a9c7826) + Xamarin.iOS 9.6.2.4   (cycle6-xi: d8bedd0) "Cycle 6 – Service Release 4" (May 16, 2016)

2. Verified the new good behavior on Cycle 7:

> GOOD: XamarinVS 4.1.0.530 (2e39740) + Xamarin.iOS 9.8.0.323 (cycle7: 39ebb77)    "Cycle 7"                     (June 8, 2016)

3. Re-verified with recent Cycle 8 – Service Release 1 Beta:

> GOOD: XamarinVS 4.2.1.15  (2ecdcdd) + Xamarin.iOS 10.0.2.3  (xcode8: 26328e0)    "Cycle 8 – Service Release 1" (October 19, 2016)



## Additional testing environment info (brief)


### Windows

Microsoft Visual Studio Enterprise 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Windows 10, Version 1607 (OS Build 14393.187)


### Mac

Mono 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15)

Xcode 7.3, Build version 7D175
Mac OS 10.11.6