FSharp project is compiled every time in VS2013 - f#

I fixed a few issues that cause project rebuilds, mainly in C#/C++ projects (change copy always to copy if newer, remove references to missing files, etc). I did it by changing the MSBuild output to Diagnostic and analysing the output.
But I failed to apply the same workarounds for very simple FSharp projects which are in the solution. Output does not show anything suspicious for me. The project itself is a one-file project.
Minimal output:
1>------ Build started: Project: FSharpProject, Configuration: Debug Any CPU ------
1> "C:\Project\Source\.nuget\NuGet.exe" install "C:\Project\Source\FSharpProject\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "C:\Project\Source\ "
1> All packages listed in packages.config are already installed.
1> FSharpProject -> C:\Project\Source\FSharpProject\bin\Debug\FSharpProject.dll
2>------ Build started: Project: FSharpProject.Tests, Configuration: Debug Any CPU ------
2> "C:\Project\Source\.nuget\NuGet.exe" install "C:\Project\Source\FSharpProject.Tests\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "C:\Project\Source\ "
2> All packages listed in packages.config are already installed.
2> FSharpProject.Tests -> C:\Project\Source\FSharpProject.Tests\bin\Debug\FSharpProject.Tests.dll
========== Build: 2 succeeded, 0 failed, 16 up-to-date, 0 skipped ==========
Diagnostic output is HUGE, but it looks like it does not show rebuild reasons.
Update:
I've created a simple solution with two projects: C# and F#.
While C# project is reported up-to-date, the build action is executed for the F# project all the time. Is it just normal behaviour for the F# projects?
1>------ Build started: Project: FSharpProject, Configuration: Debug Any CPU ------
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (entry point):
1>Target "BeforeBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Build" depends on it):
1>Target "BuildOnlySettings" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "GetFrameworkPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.NetFramework.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareForBuild" depends on it):
1>Target "GetReferenceAssemblyPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareForBuild" depends on it):
1>Target "PrepareForBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "BeforeResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "AssignProjectConfiguration" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveProjectReferences" depends on it):
1>Target "ResolveProjectReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "GetInstalledSDKLocations" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveSDKReferences" depends on it):
1>Target "ResolveSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveAssemblyReferences" depends on it):
1>Target "ExpandSDKReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveAssemblyReferences" depends on it):
1>Target "ResolveAssemblyReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "AfterResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "ImplicitlyExpandDesignTimeFacades" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.NetFramework.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResolveReferences" depends on it):
1>Target "ResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "ValidationExtension" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WorkflowBuildExtensions.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "ExpressionBuildExtension" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WorkflowBuildExtensions.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "AfterMarkupCompilePass1" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "FileClassification" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "AssignTargetPaths" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResourceNames" depends on it):
1>Target "SplitResourcesByCulture" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResourceNames" depends on it):
1>Target "CreateCustomManifestResourceNames" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResourceNames" depends on it):
1>Target "PrepareResourceNames" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "BeforeResGen" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResGen" depends on it):
1>Target "CoreResGen" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResGen" depends on it):
1>Target "AfterResGen" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "ResGen" depends on it):
1>Target "ResGen" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "PrepareRdlFiles" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\ReportingServices\Microsoft.ReportingServices.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CompileRdlFiles" depends on it):
1>Target "CompileRdlFiles" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\ReportingServices\Microsoft.ReportingServices.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareResources" depends on it):
1>Target "PrepareResources" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "_SetEmbeddedWin32ManifestProperties" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "SetWin32ManifestProperties" depends on it):
1>Target "SetWin32ManifestProperties" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "_GenerateCompileInputs" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "GenerateTargetFrameworkMonikerAttribute" in file "C:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "BeforeCompile" depends on it):
1> Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
1>Target "BeforeCompile" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "DesignTimeXamlMarkupCompilation" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreCompile" depends on it):
1>Target "DesignTimeMarkupCompilation" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreCompile" depends on it):
1>Target "CoreCompile" in file "C:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1> Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
1>Target "AfterCompile" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "SetBuildInfoDefaults" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\BuildInfo\Microsoft.VisualStudio.ReleaseManagement.BuildInfo.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "DeleteBuildInfoFile" depends on it):
1>Target "DeleteBuildInfoFile" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\BuildInfo\Microsoft.VisualStudio.ReleaseManagement.BuildInfo.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "DeleteBuildInfoResource" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\BuildInfo\Microsoft.VisualStudio.ReleaseManagement.BuildInfo.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "AfterCompileWinFX" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "_AfterCompileWinFXInternal" depends on it):
1>Target "_AfterCompileWinFXInternal" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "CodeContractReferenceAssembly" in file "C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v12.0\Microsoft.CodeContracts.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Compile" depends on it):
1>Target "Compile" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "_GenerateSatelliteAssemblyInputs" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CreateSatelliteAssemblies" depends on it):
1>Target "CreateSatelliteAssemblies" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "GetTargetPath" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "_CopyFilesMarkedCopyLocal" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CopyFilesToOutputDirectory" depends on it):
1>Target "GetCopyToOutputDirectoryXamlAppDefs" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "GetCopyToOutputDirectoryItems" depends on it):
1>Target "GetCopyToOutputDirectoryItems" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "_CopySourceItemsToOutputDirectory" depends on it):
1>Target "_CopySourceItemsToOutputDirectory" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CopyFilesToOutputDirectory" depends on it):
1>Target "_CheckForCompileOutputs" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CopyFilesToOutputDirectory" depends on it):
1>Target "CopyFilesToOutputDirectory" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "PrepareForRun" depends on it):
1> FSharpProject -> c:\Projects\TestFSharpBuild\FSharpProject\bin\Debug\FSharpProject.dll
1>Target "PrepareForRun" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "_CleanGetCurrentAndPriorFileWrites" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "IncrementalClean" depends on it):
1>Target "IncrementalClean" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "CoreBuild" depends on it):
1>Target "CoreBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Build" depends on it):
1>Target "AfterBuild" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (target "Build" depends on it):
1>Target "Build" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "c:\Projects\TestFSharpBuild\FSharpProject\FSharpProject.fsproj" (entry point):
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

This is just a problem with how the overall build results are reported. That is, even though it says it builds (and F# projects never increase the count in the "up-to-date" category) it doesn't actually invoke the compiler, or you would see a line with fsc.exe in the log somewhere. It just invokes the build target which then detects the fact that the output is already up to date. It's still arguably a bug, but not a very significant one...

Related

How does Clang find it's default sysroot / target triple? (clang-tidy has stopped working)

Background:
On a Windows 10 PC, I have a c++ codebase. Using CMAKE I generate an Mingw-w64 project (using Eclipse IDE) and a Visual Studio 2017 project. I like compiling my projects with different build systems as each gives different warnings and errors.
As part of the Mingw build, I can enable clang-tidy checks using CMAKE's CXX_CLANG_TIDY. This works well, producing a co-compile showing many interesting warnings from clang-tidy.
When I installed mingw-w64, llvm and VS I was careful not to allow these to populate the PATH environment variable, so a regular command prompt won't run gcc, clang, or CL or any associated tools. The environment is set up by a batch file before launching Eclipse or Visual Studio.
This has worked well for years (I'm still using clang 7.0.1). Both IDE's compile the same code base just fine...
Until I upgrade to Visual Studio 2019, including it's own copy of clang 10.0.0.
Now, my original clang 7.0.1 has stopped working! As I only use clang-tidy it took a while to narrow this down, but the original clang is looking for the system headers in the new clang's include location. The headers it finds are too new and the build fails.
I have found many things to try on SO and elsewhere (although any pointers are welcome) like supplying a --sysroot switch, so this question is more specific:
Question:
When there are no apparent environment variables to point to a specific clang location, where does clang find it's default target triple and therefore it's -internal-isystem paths? Why does my previously-working clang installation now look for it's system headers in a more recently installed clang location?
With a Windows command prompt:
cd C:\Program Files\LLVM\bin (my original clang location)
C:\Program Files\LLVM\bin>clang test.cpp -v
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
"C:\\Program Files\\LLVM\\bin\\clang.exe" -cc1 -triple x86_64-pc-windows-msvc19.26.28806 -emit-obj -mrelax-all -mincremental-linker-compatible -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -v -resource-dir "C:\\Program Files\\LLVM\\lib\\clang\\7.0.1" -internal-isystem "C:\\Program Files\\LLVM\\lib\\clang\\7.0.1\\include" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\include" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.18362.0\\ucrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\winrt" -fdeprecated-macro -fdebug-compilation-dir "C:\\Program Files\\LLVM\\bin" -ferror-limit 19 -fmessage-length 120 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.26.28806 -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\Foo\\AppData\\Local\\Temp\\test-c0aac1.o" -x c++ test.cpp
clang -cc1 version 7.0.1 based upon LLVM 7.0.1 default target x86_64-pc-win32
#include "..." search starts here:
#include <...> search starts here:
C:\Program Files\LLVM\lib\clang\7.0.1\include
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt
End of search list.
In file included from test.cpp:1:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\string:9:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\yvals_core.h:462:2: error:
STL1000: Unexpected compiler version, expected Clang 9.0.0 or newer.
#error STL1000: Unexpected compiler version, expected Clang 9.0.0 or newer.
Where C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include is the installed-only-today clang 10.0.0 location, so clearly not compiled into clang.exe.
Where does clang get it's defaults from?
The only "ground truth" is the code of clang itself.
With multiple versions of MSVC installed, clang will use different tricks to setup environment when initializing MSVC toolchain driver (see MSVCToolChain::MSVCToolChain() at the link above)
To solve a similar case I used VCToolsInstallDir environment variable to direct clang to old MSVC include paths.

I get an error with the npm run ios command

When I write this command 'npm run ios' I get this error:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening PhotoSearch.xcworkspace. Run CLI with --verbose flag for more details.
User defaults from command line:
IDEDerivedDataPathOverride = /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Octicons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Ionicons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Foundation.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Fontisto.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Feather.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Entypo.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-orientation' from project 'Pods')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'RSKImageCropper' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'libwebp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-viewpager' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'RNImageRotate' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-image-picker' from project 'Pods')
** BUILD FAILED **
I encountered the same bug when i installed react-native-vector-icons package. This issue is related to the autolinking feature on React Native 0.60+
Open the project into XCode (by opening the .xcworkspace file if you have used CocoaPods or the .xcodeproj file); in the main application tab, look for the Build Phases tab (between Build Setting and Build Rules); open the section Copy Bundle Resources and manually remove all the fonts listed into the error.
Be careful to not touch the [CP] Copy Pods Resources section because you can find the fonts inside that section too!

CMake - Build still succeeded even without the frameworks to be included

I downloaded the project of minicap-ios and planned to play with it and study CMake at the same time. The project will be compiled with CMake after executing ./build.sh.
Here is the content of build.sh:
mkdir build
cd build
cmake ../
make
Here is the content of the CMakeLists.txt
cmake_minimum_required(VERSION 3.5.2)
project(ios_minicap)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -g")
set(SOURCE_FILES
src/minicap.cpp
src/SimpleServer.cpp src/SimpleServer.hpp
src/FrameListener.cpp src/FrameListener.hpp
src/Banner.cpp src/Banner.hpp
src/JpegEncoder.cpp src/JpegEncoder.hpp
src/StreamClient.mm src/StreamClient.h
src/Frame.hpp)
add_executable(ios_minicap ${SOURCE_FILES})
include_directories(
/usr/local/opt/jpeg-turbo/include
)
target_link_libraries (ios_minicap
"-framework Foundation"
"-framework CoreFoundation"
"-framework CoreMedia"
"-framework CoreVideo"
"-framework CoreMediaIO"
"-framework AVFoundation"
/usr/local/opt/jpeg-turbo/lib/libturbojpeg.a)
As can be seen, some iOS frameworks are used in here. So when building the project, I would expect that CMake will go look for the frameworks needed by the project.
I tried building the project with all requirements set. The building goes successful. You can also see the path of the required frameworks:
Then I tried removing those frameworks, reran build.sh. Here's what I got:
Now, the frameworks were not included in the building process I guess. But what confuses me is that the building still succeeded with no error. Why is that so?

Gcov is not generating *.gcda file

I am using gcov for analyzing coverage of .c file. on compilation it is generation .gcna but on execution it is not generating gcda file.
I already applied -fprofile-arcs -ftest-coverage flags in my run.sh script. And using library -lgcov -coverage.
I am running it on arm compiled environment

Xcode build error after project name change

clang: error: no such file or directory: '/Users/matt/Documents/Xcode/GraphicalSet/GraphicalSet/SetTests/GraphicalSetTests/GraphicalSetTests.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I tried adding a removing the GraphicalSetTests.m file from compile sources in build phases but to no avail.
There are two extra folders in that path: SetTests/GraphicalSetTests
Go to your ProjectTests - > Build Phases -> Compile Sources
Remove this file ProjectTests.m and try to build again.

Resources