Bug 46610 - AlertCenter.IOS.Sample from ios-samples, fails to build with xbuild
Summary: AlertCenter.IOS.Sample from ios-samples, fails to build with xbuild
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: XI 10.2 (iOS 10.1)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Prashant [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-11-08 19:54 UTC by Ankit Jain
Modified: 2016-12-26 16:46 UTC (History)
3 users (show)

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


Attachments
alert_center_xbuild.log (18.82 KB, text/plain)
2016-11-08 19:54 UTC, Ankit Jain
Details
fsscenekit_xbuild.log (16.71 KB, text/plain)
2016-11-08 19:59 UTC, Ankit Jain
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 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 FIXED

Description Ankit Jain 2016-11-08 19:54:05 UTC
Created attachment 18384 [details]
alert_center_xbuild.log

Sample from https://github.com/xamarin/ios-samples/blob/master/HelloComponents/Components/alert-center-1.0.6/samples/AlertCenter.IOS.Sample/AlertCenter.IOS.Sample.sln fails to build with xbuild:

```
/Users/ankit/dev/ios-samples/HelloComponents/Components/alert-center-1.0.6/samples/AlertCenter.IOS.Sample/AlertCenter.IOS.Sample.sln (default targets) ->
(Build target) ->
/Users/ankit/dev/ios-samples/HelloComponents/Components/alert-center-1.0.6/samples/AlertCenter.IOS.Sample/AlertCenter.IOS.Sample.csproj (default targets) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.CSharp.targets (Build target) ->

        /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.CSharp.targets: error : Support for Classic applications (using monotouch.dll) is obsoleted in Xamarin.iOS 10.0+. Please migrate your project to Unified (Project > Migrate to Xamarin.iOS Unified API).
```

$ mono --version
Mono JIT compiler version 4.8.0 (mono-4.8.0-branch/e51aa0a Fri Oct 28 11:48:43 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       altstack
        Notification:  kqueue
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          yes(3.6.0svn-mono-master/8b1520c)
        GC:            sgen

Xamarin.iOS
Version: 10.4.0.6 (Xamarin Business)
Hash: 120ecb5
Branch: cycle9
Build date: 2016-11-07 15:25:09-0500
Comment 1 Ankit Jain 2016-11-08 19:58:53 UTC
Another sample with the same issue:

https://github.com/xamarin/ios-samples/blob/master/ios8/FSSceneKit/FSSceneKit.sln

/Users/ankit/dev/ios-samples/ios8/SceneKitFSharp/FSSceneKit.sln (default targets) ->
(Build target) ->
/Users/ankit/dev/ios-samples/ios8/SceneKitFSharp/FSSceneKit/FSSceneKit.fsproj (default targets) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.FSharp.targets (Build target) ->

        /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.FSharp.targets: error : Support for Classic applications (using monotouch.dll) is obsoleted in Xamarin.iOS 10.0+. Please migrate your project to Unified (Project > Migrate to Xamarin.iOS Unified API).
Comment 2 Ankit Jain 2016-11-08 19:59:31 UTC
Created attachment 18385 [details]
fsscenekit_xbuild.log
Comment 3 Prashant [MSFT] 2016-12-22 06:42:18 UTC
AlertCenter.IOS.Sample.sln fails to build because we no longer support Xamarin.iOS classic APIs. 
You can try build the AlertCenter.IOS.Sample-Unified/AlertCenter.IOS.Sample-Unified.sln
instead. 


> /Users/ankit/dev/ios-samples/ios8/SceneKitFSharp/FSSceneKit.sln
I am not able to reproduce this issue with the latest Alpha, can you confirm that you still hitting this issue, please?
Comment 4 Ankit Jain 2016-12-22 19:40:14 UTC
In my comment#1, the link was incorrect. The project is https://github.com/xamarin/ios-samples/blob/master/ios8/SceneKitFSharp/FSSceneKit.sln and not https://github.com/xamarin/ios-samples/blob/master/ios8/FSSceneKit/FSSceneKit.sln .

The log is for the correct project though. And I tried building it (SceneKitFSharp/FSSceneKit.sln) and it still fails with:


/Users/ankit/dev/ios-samples/ios8/SceneKitFSharp/FSSceneKit.sln (default targets) ->
(Build target) ->
/Users/ankit/dev/ios-samples/ios8/SceneKitFSharp/FSSceneKit/FSSceneKit.fsproj (default targets) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.FSharp.targets (Build target) ->

        /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.MonoTouch.FSharp.targets: error : Support for Classic applications (using monotouch.dll) is obsoleted in Xamarin.iOS 10.0+. Please migrate your project to Unified (Project > Migrate to Xamarin.iOS Unified API).


Using:

Xamarin Studio Business
Version 6.2 (build 1686)
Installation UUID: 2ef76c0f-e740-456c-ac14-3b17ef092570
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/df81fe4) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000395

Xamarin.iOS
Version: 10.4.0.54 (Xamarin Business)
Hash: 4d85810
Branch: master
Build date: 2016-12-17 15:04:15-0500
Comment 5 Prashant [MSFT] 2016-12-26 16:46:00 UTC
@ankit fixed in https://github.com/xamarin/ios-samples/pull/135/commits/f7f174b43129959d7fda46cf567bee9cef122193

You can use my fork until changes are merged into the upstream
https://github.com/prashantvc/ios-samples