Skip to content

XMBindingSample fails to build with Xamarin.Mac 4.5.0.221 on Xcode 9.2 with "Full" profile and no linking #3906

Description

@manish

Steps to Reproduce

  1. Install Xamarin.Mac 4.5.0.221 or build from 256a3f5
  2. Open XMBinding Sample https://github.com/xamarin/mac-samples/blob/master/XMBindingExample/XMBindingExample/XMBindingExample.sln
  3. Set Target to "Full" and set linker to Don't Link
  4. Build the solution

Expected Behavior

The build passes successfully

Actual Behavior

The build fails with

error MM4162: The type 'BusinessChat.BCChatButtonStyle' (used as a parameter 
in BusinessChat.BCChatButton..ctor) is not available in macOS 10.13.2 (it was 
introduced in macOS 10.13.4). Please build with a newer macOS SDK 
(usually done by using the most recent version of Xcode).

It passes with Linker set to Link Framework and the error message does not suggest this action

Might be related to e19336b#diff-8cfea336cc7485e4438a02885718ea6a

Environment

=== Visual Studio Enterprise 2017 for Mac (Preview) ===

Version 7.6 Preview (7.6 build 436)
Installation UUID: 9d81c9a3-604c-49d7-bdcb-c43d8aeac733
Runtime:
	Mono 5.10.1.38 (2017-12/b4e428d7c41) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 4.4.0.36 (master / 0c7c49a6)

	Package version: 510010038

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	2.1.0-preview1-26216-03
	2.0.3
	2.0.0
	2.0.0-preview2-25407-01
	1.1.1
	1.0.4
SDK: /usr/local/share/dotnet/sdk/2.1.300-preview1-008174/Sdks
SDK Versions:
	2.1.300-preview1-008174
	2.1.2
	2.0.0
	2.0.0-preview2-006497
	1.0.1
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.3
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.2 (13772)
Build 9C40b

=== Xamarin.Mac ===

Version: 4.5.0.221 (Visual Studio Enterprise)

=== Xamarin.iOS ===

Version: 11.11.0.221 (Visual Studio Enterprise)
Hash: 318f5832
Branch: master
Build date: 2018-04-06 15:35:02-0400

=== Xamarin.Android ===

Version: 8.3.99.9 (Visual Studio Enterprise)
Android SDK: /Users/builder/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)
		7.0    (API level 24)
		7.1    (API level 25)
		8.0    (API level 26)
		8.1    (API level 27)

SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25.0.1
SDK Build Tools Version: 27.0.2

Java SDK: /usr
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 706000436
Git revision: 8162e3f09b31267a21153aa99e72da708c2bf517
Build date: 2018-04-06 10:48:18-04
Xamarin addins: 1994467583f690a38bee68f363928d151019a5dc
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Build Logs

http://xqa.blob.core.windows.net/gist/log-9e6fe9afa6ca4a81a94ebc8a068392e7.txt

Example Project (If Possible)

Clone the sample https://github.com/xamarin/mac-samples/blob/master/XMBindingExample/XMBindingExample/XMBindingExample.sln

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixmacOSIssues affecting macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions