Bug 9891 - MonoDevelop does not reload info.plist before building
Summary: MonoDevelop does not reload info.plist before building
Status: RESOLVED DUPLICATE of bug 1118
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 3.1.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-01-30 04:11 UTC by Jonas Sourlier
Modified: 2013-01-30 11:28 UTC (History)
1 user (show)

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

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 or GitHub 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:
RESOLVED DUPLICATE of bug 1118

Description Jonas Sourlier 2013-01-30 04:11:51 UTC
We have two info.plist files, one for the Lite version of our app, and one for the Pro version. A "Before Build" Custom Command copies the relevant file to replace Info.plist, so that the right file is used for the build, for example, the Lite build has the following pre-build command:

cp ${ProjectDir}/Info_lite.plist ${ProjectDir}/Info.plist

However, MonoDevelop seems to not re-load Info.plist from the harddisk. If we're building the Pro version first, and then switch to the Lite configuration, it immediately stops with the error

Project bundle ID 'ourcompany.ourapp.Pro' does not match specified provisioning profile ...

But the bundle ID in info.plist is 'ourcompany.ourapp.Lite'. So, MonoDevelop does not reload info.plist from the harddisk, because it "thinks" it hasn't changed. No matter how many times we're invoking the build command, it always complains about the bundle ID being wrong.

Our solution for this is to open info.plist in MonoDevelop, change something, change it back, save the file, then build again.
Comment 1 Jeffrey Stedfast 2013-01-30 11:28:14 UTC

*** This bug has been marked as a duplicate of bug 1118 ***