From e8aa9572096710c9581938078ff4c5dcfa971776 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 13 Oct 2023 01:09:15 +0000 Subject: [PATCH] :O This builds an app which brings up the web site in the simulator. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4513 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ios/Info.plist | 26 ++++++++++++++++++++++++++ tools/ios.sh | 6 ++++++ 2 files changed, 32 insertions(+) create mode 100644 src/ios/Info.plist create mode 100755 tools/ios.sh diff --git a/src/ios/Info.plist b/src/ios/Info.plist new file mode 100644 index 00000000..297e0cf3 --- /dev/null +++ b/src/ios/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleName + cory + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleExecutable + cory + CFBundleIdentifier + cory + CFBundleResourceSpecification + ResourceRules.plist + LSRequiresIPhoneOS + + CFBundleDisplayName + cory + CFBundleVersion + 1.0 + CFBundleShortVersionString + 1.0 + + diff --git a/tools/ios.sh b/tools/ios.sh new file mode 100755 index 00000000..406faf50 --- /dev/null +++ b/tools/ios.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash -e +mkdir -p out/cory.app +cp src/ios/Info.plist out/cory.app +xcrun --sdk iphonesimulator clang src/ios.m -arch x86_64 -o out/cory.app/cory -framework CoreFoundation -framework UIKit -framework WebKit -framework Foundation +xcrun simctl install booted out/cory.app +xcrun simctl launch booted cory