commit | 17d088b50b4800b2cbeeedffe589787541a6e0d4 | [log] [tgz] |
---|---|---|
author | davg <davg@google.com> | Wed Aug 22 18:06:14 2018 -0400 |
committer | David Goldman <davg@google.com> | Thu Aug 23 12:46:57 2018 -0400 |
tree | cff815d3111135b34db0b374b3bb20134b10b9f5 | |
parent | 29b0cda8e40810988d314a491162501e6875d3e5 [diff] |
Improve error messages for early Bazel failures Tulsi previously only used stdout/stderr from Bazel's BEP during builds inside of the IDE. This is of course problematic for Bazel failures which occur before BEP can be initialized. As a workaround, if we are unable to read any build events via BEP, we output Bazel's stdout/stderr directly. This change also makes the error messages a bit more useful by pointing Xcode to the bazel_build.py script, so the user has more insight into errors generated by our script. PiperOrigin-RevId: 209837296
Open src/Tulsi.xcodeproj, and within Xcode, build the TulsiApp.
Run the TulsiApp.
Tulsi-generated Xcode projects use Bazel to build, not Xcode via xcbuild. This means that many common components of an Xcode project are handled differently than you may be used to. Notable differences:
bazel
invocations, some of which may affect Bazel caching. In order to maximize cache re-use when building from the command line, try using the user_build.py
script which is located in the generated xcodeproj at <xcodeproj>/.tulsi/Scripts/user_build.py
.Tulsi projects contain a few settings which control various behaviors during project generation and builds.
build
flags, customizable per compilation mode (dbg
and opt
)build
startup flags, also customizable per compilation modedbg
or opt
, no fastbuild
) used during project generation.dbg
, swap to opt
if you normally build Release builds in Xcode (i.e. profiling your app). Setting this improperly shouldn't break your project although it may potentially worsen generation and build performance.No
, swap to Yes
if your project contains Swift (even in its dependencies). Setting this improperly shouldn't break your project although it may potentially worsen generation and build performance.