This is the iOS app for the Subcaucus Calculator web app. It is an app that hosts a built-in copy of the web app in a WKWebView
. As such, this app also serves as a great example for how to use both WKWebView
and URLComponents
in a project. This app is developed and distributed by Tenseg LLC.
To build this project the following must be installed on your Mac:
- Xcode
- Homebrew installed using the default
/usr/local
prefix - Node.js: Run
brew install node
- Yarn: Run
brew install yarn
Before the first build you must set up the Subcaucus Calculator React app submodule:
git submodule update --init --recursive
cd React
yarn
The first build sometimes fails anyway. The best we can tell this is a side-effect of the Run Script build phases used to write the Git commit number as the build number and build the React app with Xcode's new build system. The workaround we've found is simply to run Product > Clean Build Folder once and then subsequent builds should succeed. We aren't sure what is happening, but know that this tends to fix the problem and that it is usually just a getting started thing.
Do not develop the Subcaucus Calculator web app using the copy in this project. Instead, clone it separately somewhere else and develop and test it there. When you have a stable version update the submodule to that, which will put it in a detached head state:
cd React
git checkout __hash__
- Commit the changes to the submodule in the repo of this project using
git commit -am __message__
since Xcode can't seem to recgnize there are changes that need committing with regard to submodules
We reccommend Visual Studio Code as the environment to use to develop and test the Subcaucus Calculator web app.
You can build this app yourself in Xcode for the iOS Simulator or your own personal devices using Apple's Personal Provisioning. Tenseg LLC distributes the app on the iOS App Store for the general public.
See the version history of this project for changes.
- Alexander Celeste – Tenseg LLC
- Eric Celeste – Tenseg LLC
We have relied on numerous helpful articles and threads online to learn things as we went about writing the code of this app. Those are referenced throughout the source code where appropriate.