Could not detect any platforms from 'XCODE10' / 'XCODE11'
See original GitHub issueDescription
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
- Add a reference to
Xamarin.Forms 4.5.0.495
nuget Xamarin.Forms 4.5.0.495
-
Run
paket install
-
Warnings about
XCODE10
andXCODE11
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:
- Created 3 years ago
- Reactions:3
- Comments:17 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@forki , if we look into the srtucture of directory build, we will see the following:
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 :
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.
@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
andbuild\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 bybuild\Xamarin.Forms.props
, same with targets. So I guess a props/targets file inside thebuild
folder with the same name as the package is meant to be imported by default?