#!/bin/bash

set -e

SDKROOT=`xcrun -sdk appletvos --show-sdk-path`
echo $SDKROOT
xcrun -v -sdk appletvos clang -fobjc-arc -arch arm64 -IDownload -framework Foundation -framework MobileCoreServices -o nitoInstaller nitoInstaller.m Download/URLDownloader.m Download/URLCredential.m

xcrun -v -sdk appletvos clang -arch arm64 ls.m -framework Foundation -framework MobileCoreServices -o lsdtrip

ldid -S nitoInstaller
ldid -S lsm
