I was trying to compile Sugar project on MacOSX 10.10.5 Yosemite, since I need some frameworks to be added to my shared library project (Sugar.Data).
I’m using Xcode
macbookproloreto:sugar admin$ xcodebuild -version
Xcode 7.2
Build version 7C68
and the latest tvOS / watchOS / iOS SDKs.
I have some errors when building the project. It seems related to the WindowsPhone and WinRT targets:
Build FAILED.
Warnings:
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar.Data/Sugar.Data.Echoes.WP8.oxygene: warning : Could not find project file /Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/WindowsPhone/v8.0/RemObjects.Oxygene.Echoes.WindowsPhone.targets, to import. Ignoring.
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WP8.oxygene: warning : Could not find project file /Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/WindowsPhone/v8.0/RemObjects.Oxygene.Echoes.WindowsPhone.targets, to import. Ignoring.
Errors:
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar.sln (Build) ->
(Build target) ->
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WP8.oxygene: error : /Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WP8.oxygene: /Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WP8.oxygene could not import "$(MSBuildExtensionsPath)/RemObjects Software/Oxygene/$(TargetFrameworkIdentifier)/$(TargetFrameworkVersion)/RemObjects.Oxygene.Echoes.$(TargetFrameworkIdentifier).targets"
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar.sln (Build) ->
(Build target) ->
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WinRT.oxygene (default targets) ->
/Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/RemObjects.Oxygene.Echoes.WinRT.targets (_ValidateWinRT target) ->
/Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/RemObjects.Oxygene.Echoes.WinRT.targets: error : Building for WinRT is currently only supported on Windows
2 Warning(s)
2 Error(s)
So I have tried to disable those targets and I get some warnings
Warnings:
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar.Data/Sugar.Data.Echoes.WP8.oxygene: warning : Could not find project file /Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/WindowsPhone/v8.0/RemObjects.Oxygene.Echoes.WindowsPhone.targets, to import. Ignoring.
/Volumes/MacHDD2/Developmemt/MusiXmatch/3rdParty/sugar/Sugar/Sugar.Echoes.WP8.oxygene: warning : Could not find project file /Applications/Fire.app/Contents/Resources/XbuildTargets/RemObjects Software/Oxygene/WindowsPhone/v8.0/RemObjects.Oxygene.Echoes.WindowsPhone.targets, to import. Ignoring.
That’s as designed, the WP8 and WinRT toolchains from Microsoft don’t exist on Mono and Mac so those two versions can not be compiled. I’ll check why you got more than just the two clean “not supported on Mac” error messages — you should not be seeing the follow-up errors/warnings.
/.../RemObjects.Oxygene.Echoes.WindowsPhone.targets: error : Building for Windows Phone is currently only supported on Windows
/.../RemObjects.Oxygene.Echoes.WinRT.targets: error : Building for WinRT is currently only supported on Windows