commit | c73a77dbc3abf5d77285e0014d5791e393e0d5cc | [log] [tgz] |
---|---|---|
author | ivanhernandez <ivanhernandez@google.com> | Wed Sep 12 14:49:20 2018 -0400 |
committer | Jonathan Dierksen <dierksen@google.com> | Thu Sep 13 17:50:15 2018 -0400 |
tree | ddb30c6a112a128e884c17416dcff7d3531a5659 | |
parent | 9f74f16a820ccfac892e8002809ebaf3a6517d31 [diff] |
Black box end-to-end test to generate Buttons. Generates an xcodeproj for Buttons and runs tests to ensure project works. PiperOrigin-RevId: 212677610
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.