question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not detect any platforms from 'XCODE10' / 'XCODE11'

See original GitHub issue

Description

Starting v4.5.0, Xamarin.Forms added 2 new folders in their NuGet packages, under the folder build, named XCODE10 and XCODE11.

When installing this package with Paket, the following warnings appear:

Xamarin.Forms 4.5.0.495 unzipped to /Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.iOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.macOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.iOS.pdb', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.iOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.macOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.iOS.pdb', please tell the package authors
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.iOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.macOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE10' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE10/Xamarin.Forms.Platform.iOS.pdb', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.iOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.macOS.dll', please tell the package authors
Could not detect any platforms from 'XCODE11' in '/Users/timothelariviere/Git/GitHub/Fabulous/packages/androidapp/Xamarin.Forms/build/XCODE11/Xamarin.Forms.Platform.iOS.pdb', please tell the package authors

Repro steps

  1. Add a reference to Xamarin.Forms 4.5.0.495
nuget Xamarin.Forms 4.5.0.495
  1. Run paket install

  2. Warnings about XCODE10 and XCODE11 should appear (see example above)

Expected behavior

I’m not exactly sure what these warnings mean, but I would expect no warning at all.

Actual behavior

Warnings are appearing.

Known workarounds

No workaround known.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
vshapenkocommented, May 3, 2020

@forki , if we look into the srtucture of directory build, we will see the following:

  • Xamarin.Forms.props -Xamarin.Forms.targets -Xamarin.Forms.Default.props -Xamarin.Forms.Default.targets MonoAndroid10
    net46
    netstandard2.0
    XCODE10
    XCODE11\

We need to put <packagename>.props at the beginning of project file, put <packagename>.targets to the end of project file. But before we do this, we should scan folders for props and targets for tfm related files, i.e. there may be <tfm>/<packagename>.props, which we should take instead root props file. Important: Only props and targets should be taken, neither dll or other one. Name of file should match the package name. P.,S. There can be a buildMultitarget directory in package :

MSBuild .props and .targets files for cross-framework targeting can be placed in the \buildMultiTargeting folder. During package installation, NuGet adds the corresponding <Import> elements to the project file with the condition, that the target framework is not set (the MSBuild property $(TargetFramework) must be empty).

P.S.S https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package#from-a-convention-based-working-directory is more detailed and full information about possible folder names and their behaviour.

0reactions
TimLarivierecommented, May 2, 2020

@forki I confirm that the warnings disappeared with 6.0.0-alpha027.

For the props/targets, Xamarin.Forms requires to import both build\Xamarin.Forms.props and build\Xamarin.Forms.targets (inside Xamarin.Forms NuGet package) in order to compile. It’s these files that import the dlls from the XCODE10/XCODE11 folders.

Note that build\Xamarin.Forms.DefaultItems.props is imported by build\Xamarin.Forms.props, same with targets. So I guess a props/targets file inside the build folder with the same name as the package is meant to be imported by default?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SPM in project pre Xcode 11 - 'No Such Module'
Hi,. I've a issue with integrating swift packages into projects that were created via e.g. xcode 10 (pre 11). I see added library...
Read more >
xcode 11 xcode 10 compatibility - swift
I have several projects developed in Xcode 10, but now Apple is saying (April 2020) that will not accept apps developed in Xcode...
Read more >
Could not find iPhone simulator after migrating from ...
Developers using older versions of react-native after upgrading from Xcode10 to Xcode11 are not able to run the iphone simulator on their ...
Read more >
BuildFailedException for AR Foundation in 2019.2
Hi all On windows trying to build AR Foundation scene (with LWRP and ... BuildFailedException: Could not determine which version of Xcode ...
Read more >
Does Unity require a minimal Xcode version?
Suddenly (I believe after updating to Unity 2020.2.1), my iOS project can no longer be archived from within XCode 10.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found