Closed
requested to merge github/fork/shybovycha/enhancement/detailed-exception-description-for-flavors into master
Created by: shybovycha
This PR is aimed to provide more detailed feedback on why the build failed.
Currently, apple_bundle
targets require the flavor to be provided. But if one is not provided, the error does not point to why the build really failed and what options to fix that failure are. For more details see the example below.
Before:
$ buck run //irrlicht-newton-game:bundle-osx1
Parsing buck files: finished in 2.3 sec (100%)
Creating action graph: finished in 0.7 sec (100%)
Building: finished in 1.1 sec
Total time: 4.2 sec
BUILD FAILED: //irrlicht-newton-game:bundle-osx#dwarf-and-dsym,no-include-frameworks: Apple bundle requires an Apple platform, found 'default'
A common cause of this error is that the required SDK is missing.
Please check whether it's installed and retry.
After:
$ ../buck/bin/buck run //irrlicht-newton-game:bundle-osx
Parsing buck files: finished in 2.8 sec (100%)
Creating action graph: finished in 0.7 sec (100%)
Building: finished in 0.8 sec
Total time: 4.4 sec
BUILD FAILED: //irrlicht-newton-game:bundle-osx#dwarf-and-dsym,no-include-frameworks: Apple bundle requires an Apple platform, found 'default'
A common cause of this error is that the required SDK is missing.
Please check whether it's installed and retry.
Original exception: "Apple C++ Platform" has no flavor "default"; available ones: appletvos11.0-arm64, appletvsimulator11.0-x86_64, iphoneos11.0-armv7, iphoneos11.0-arm64, iphonesimulator11.0-i386, iphonesimulator11.0-x86_64, macosx10.13-i386, macosx10.13-x86_64, watchos4.0-armv7k, watchsimulator4.0-i386, appletvos-arm64, appletvsimulator-x86_64, iphoneos-armv7, iphoneos-arm64, iphonesimulator-i386, iphonesimulator-x86_64, macosx-i386, macosx-x86_64, watchos-armv7k, watchsimulator-i386