Link iOS CV model files in a build phase

iOS bundle files *must* be referenced in the xcode projects, which means that
updating the filenames in .env is not enough, you also have to add them to
the xcode project. This attempts to simplify this by assuming the named files
in the xcode project remain the same, but they are actually hard links to the
files specified in .env.
This commit is contained in:
Ken-ichi Ueda
2023-08-03 21:21:58 -07:00
parent 4b349906b0
commit 393bf767cf
6 changed files with 85 additions and 27 deletions

View File

@@ -17,7 +17,11 @@ E2E_TEST_PASSWORD=test-password
GMAPS_API_KEY=some-key
# Model file names for Android and iOS
# Model file names for Android and iOS. See the README for instructions on
# where to put these files. Note that in iOS, we have an additional build
# phase in xcode to hard link these files using file names xcode knows about,
# so we don't have to add these files to xcode in addition to declaring them
# here.
ANDROID_MODEL_FILE_NAME=small_inception_tf1.tflite
ANDROID_TAXONOMY_FILE_NAME=small_export_tax.csv
IOS_MODEL_FILE_NAME=small_inception_tf1.mlmodel