Bug 270 - Fix --xcode support to build
Summary: Fix --xcode support to build
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-11 17:30 UTC by Jeffrey Stedfast
Modified: 2012-11-21 08:58 UTC (History)
4 users (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 NOT_ON_ROADMAP

Description Jeffrey Stedfast 2011-08-11 17:30:17 UTC
Currently, the output that we generate when we use --xcode generates files with .6.s (ARMv6 I suspect), but our generated XCode project does not reference the .6.s files, instead the .s files.

The other problem is that we generate a "-u", "_catch_exception_raise" in the project file, and this symbol does not seem to be there in newer versions of the OS, so we might want to take that puppy out, or alternatively, find out why mtouch LD invocation works, but the one in the xbuild project doesnt.
Comment 1 Miguel de Icaza [MSFT] 2011-08-11 18:18:02 UTC
Fixed the first part of the problem (the .6.s and .7.s with .s)
Comment 2 Jeffrey Stedfast 2011-08-11 19:16:41 UTC
Fixed the -u _catch_exception_raise bug by only adding that for iphonesimulator targets and not for iphoneos targets in the generated project.pbxproj file.


Only remaining bug is to copy over the Info.plist file...
Comment 6 Jeffrey Stedfast 2011-08-12 12:54:08 UTC
Okay, from what I can tell, mtouch only copyies Info.plist over to the output dir if it is specified in a -res:Info.plist argument. The bug in mtouch was that it always made the project.pbxproj reference an Info.plist even if one wasn't included as a resource.

I've fixed the bug where mtouch would always reference an Info.plist even if it wasn't passed as a resource, but maybe that isn't what we ultimately want?

Right now users would need to do:

--xcode=/Users/jeff/Projects/MyProject -res:Info.plist

Is this what we want?
Comment 7 Jeffrey Stedfast 2011-08-23 11:18:17 UTC
I'm thinking we want the XcodeTarget code-path to pull in Info.plist if it can find it
Comment 9 Rolf Bjarne Kvinge [MSFT] 2012-11-21 08:58:03 UTC
--xcode has been deprecated.