Giter Site home page Giter Site logo

ish-app / ish Goto Github PK

View Code? Open in Web Editor NEW
16.0K 549.0 841.0 4.92 MB

Linux shell for iOS

Home Page: https://ish.app

License: Other

C 70.51% Meson 0.71% Assembly 5.37% Shell 0.61% GDB 0.06% Objective-C 21.22% CSS 0.01% HTML 0.02% JavaScript 0.38% Ruby 0.25% Python 0.05% Swift 0.80% Nix 0.01%
linux ios emulator hacktoberfest

ish's Introduction

Build Status goto counter fuck counter

A project to get a Linux shell running on iOS, using usermode x86 emulation and syscall translation.

For the current status of the project, check the issues tab, and the commit logs.

Hacking

This project has a git submodule, make sure to clone with --recurse-submodules or run git submodule update --init after cloning.

You'll need these things to build the project:

  • Python 3
    • Meson (pip3 install meson)
  • Ninja
  • Clang and LLD (on mac, brew install llvm, on linux, sudo apt install clang lld or sudo pacman -S clang lld or whatever)
  • sqlite3 (this is so common it may already be installed on linux and is definitely already installed on mac. if not, do something like sudo apt install libsqlite3-dev)
  • libarchive (brew install libarchive, sudo port install libarchive, sudo apt install libarchive-dev) TODO: bundle this dependency

Build for iOS

Open the project in Xcode, open iSH.xcconfig, and change ROOT_BUNDLE_IDENTIFIER to something unique. You'll also need to update the development team ID in the project (not target!) build settings. Then click Run. There are scripts that should do everything else automatically. If you run into any problems, open an issue and I'll try to help.

Build command line tool for testing

To set up your environment, cd to the project and run meson build to create a build directory in build. Then cd to the build directory and run ninja.

To set up a self-contained Alpine linux filesystem, download the Alpine minirootfs tarball for i386 from the Alpine website and run ./tools/fakefsify, with the minirootfs tarball as the first argument and the name of the output directory as the second argument. Then you can run things inside the Alpine filesystem with ./ish -f alpine /bin/login -f root, assuming the output directory is called alpine. If tools/fakefsify doesn't exist for you in your build directory, that might be because it couldn't find libarchive on your system (see above for ways to install it.)

You can replace ish with tools/ptraceomatic to run the program in a real process and single step and compare the registers at each step. I use it for debugging. Requires 64-bit Linux 4.11 or later.

Logging

iSH has several logging channels which can be enabled at build time. By default, all of them are disabled. To enable them:

  • In Xcode: Set the ISH_LOG setting in iSH.xcconfig to a space-separated list of log channels.
  • With Meson (command line tool for testing): Run meson configure -Dlog="<space-separated list of log channels>".

Available channels:

  • strace: The most useful channel, logs the parameters and return value of almost every system call.
  • instr: Logs every instruction executed by the emulator. This slows things down a lot.
  • verbose: Debug logs that don't fit into another category.
  • Grep for DEFAULT_CHANNEL to see if more log channels have been added since this list was updated.

A note on the JIT

Possibly the most interesting thing I wrote as part of iSH is the JIT. It's not actually a JIT since it doesn't target machine code. Instead it generates an array of pointers to functions called gadgets, and each gadget ends with a tailcall to the next function; like the threaded code technique used by some Forth interpreters. The result is a speedup of roughly 3-5x compared to pure emulation.

Unfortunately, I made the decision to write nearly all of the gadgets in assembly language. This was probably a good decision with regards to performance (though I'll never know for sure), but a horrible decision with regards to readability, maintainability, and my sanity. The amount of bullshit I've had to put up with from the compiler/assembler/linker is insane. It's like there's a demon in there that makes sure my code is sufficiently deformed, and if not, makes up stupid reasons why it shouldn't compile. In order to stay sane while writing this code, I've had to ignore best practices in code structure and naming. You'll find macros and variables with such descriptive names as ss and s and a. Assembler macros nested beyond belief. And to top it off, there are almost no comments.

So a warning: Long-term exposure to this code may cause loss of sanity, nightmares about GAS macros and linker errors, or any number of other debilitating side effects. This code is known to the State of California to cause cancer, birth defects, and reproductive harm.

ish's People

Contributors

0b101 avatar akemimadoka avatar alexismarquis avatar angelohyang avatar asdfugil avatar cgull avatar cmelbye-sc avatar cristeahub avatar davidsouthgate avatar github-actions[bot] avatar ish-actions avatar jason-conway avatar khanknyo avatar kkebo avatar krystophny avatar lorenzodla avatar lunixbochs avatar matthewmerrill avatar mizu-bai avatar mnpn avatar noahpeeters avatar rexogamer avatar saagarjha avatar sdushantha avatar seproblem avatar stek29 avatar tbodt avatar wishstudio avatar woachk avatar zhuowei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ish's Issues

Fix database syncing problems

When the app crashes when it's using the Berkeley DB NDBM, the database doesn't get synced to disk. Need to switch to a better database.

times command weird bug

When you run the times command in the latest test flight build it will just black screen and crash producing the log attached. If you are screen recording it will show a UIAlertView and say "Attemping to kill init" with the closing button "goodbye". Dont know what the times command does but I'm guessing this is a bug?

x86_32 Linux Syscall Tracker

  • (1) exit
  • (2) fork
  • (3) read
  • (4) write
  • (5) open
  • (6) close
  • (7) waitpid
  • (8) creat
  • (9) link
  • (10) unlink
  • (11) execve
  • (12) chdir
  • (13) time
  • (14) mknod
  • (15) chmod
  • (16) lchown
  • (17) break
  • (18) oldstat
  • (19) lseek
  • (20) getpid
  • (21) mount
  • (22) umount
  • (23) setuid
  • (24) getuid
  • (25) stime
  • (26) ptrace
  • (27) alarm
  • (28) oldfstat
  • (29) pause
  • (30) utime
  • (31) stty
  • (32) gtty
  • (33) access
  • (34) nice
  • (35) ftime
  • (36) sync
  • (37) kill
  • (38) rename
  • (39) mkdir
  • (40) rmdir
  • (41) dup
  • (42) pipe
  • (43) times
  • (44) prof
  • (45) brk
  • (46) setgid
  • (47) getgid
  • (48) signal
  • (49) geteuid
  • (50) getegid
  • (51) acct
  • (52) umount2
  • (53) lock
  • (54) ioctl
  • (55) fcntl
  • (56) mpx
  • (57) setpgid
  • (58) ulimit
  • (59) oldolduname
  • (60) umask
  • (61) chroot
  • (62) ustat
  • (63) dup2
  • (64) getppid
  • (65) getpgrp
  • (66) setsid
  • (67) sigaction
  • (68) sgetmask
  • (69) ssetmask
  • (70) setreuid
  • (71) setregid
  • (72) sigsuspend
  • (73) sigpending
  • (74) sethostname
  • (75) setrlimit
  • (76) getrlimit
  • (77) getrusage
  • (78) gettimeofday
  • (79) settimeofday
  • (80) getgroups
  • (81) setgroups
  • (82) select
  • (83) symlink
  • (84) oldlstat
  • (85) readlink
  • (86) uselib
  • (87) swapon
  • (88) reboot
  • (89) readdir
  • (90) mmap
  • (91) munmap
  • (92) truncate
  • (93) ftruncate
  • (94) fchmod
  • (95) fchown
  • (96) getpriority
  • (97) setpriority
  • (98) profil
  • (99) statfs
  • (100) fstatfs
  • (101) ioperm
  • (102) socketcall
    • (1) socket
    • (2) bind
    • (3) connect
    • (4) listen
    • (5) accept
    • (6) getsockname
    • (7) getpeername
    • (8) socketpair
    • (9) send
    • (10) recv
    • (11) sendto
    • (12) recvfrom
    • (13) shutdown
    • (14) setsockopt
    • (15) getsockopt
    • (16) sendmsg
    • (17) recvmsg
    • (18) accept4
    • (19) recvmmsg
    • (20) sendmmsg
  • (103) syslog
  • (104) setitimer
  • (105) getitimer
  • (106) stat
  • (107) lstat
  • (108) fstat
  • (109) olduname
  • (110) iopl
  • (111) vhangup
  • (112) idle
  • (113) vm86old
  • (114) wait4
  • (115) swapoff
  • (116) sysinfo
  • (117) ipc
  • (118) fsync
  • (119) sigreturn
  • (120) clone
  • (121) setdomainname
  • (122) uname
  • (123) modify_ldt
  • (124) adjtimex
  • (125) mprotect
  • (126) sigprocmask
  • (127) create_module
  • (128) init_module
  • (129) delete_module
  • (130) get_kernel_syms
  • (131) quotactl
  • (132) getpgid
  • (133) fchdir
  • (134) bdflush
  • (135) sysfs
  • (136) personality
  • (137) afs_syscall
  • (138) setfsuid
  • (139) setfsgid
  • (140) _llseek
  • (141) getdents
  • (142) _newselect
  • (143) flock
  • (144) msync
  • (145) readv
  • (146) writev
  • (147) getsid
  • (148) fdatasync
  • (149) _sysctl
  • (150) mlock
  • (151) munlock
  • (152) mlockall
  • (153) munlockall
  • (154) sched_setparam
  • (155) sched_getparam
  • (156) sched_setscheduler
  • (157) sched_getscheduler
  • (158) sched_yield
  • (159) sched_get_priority_max
  • (160) sched_get_priority_min
  • (161) sched_rr_get_interval
  • (162) nanosleep
  • (163) mremap
  • (164) setresuid
  • (165) getresuid
  • (166) vm86
  • (167) query_module
  • (168) poll
  • (169) nfsservctl
  • (170) setresgid
  • (171) getresgid
  • (172) prctl
  • (173) rt_sigreturn
  • (174) rt_sigaction
  • (175) rt_sigprocmask
  • (176) rt_sigpending
  • (177) rt_sigtimedwait
  • (178) rt_sigqueueinfo
  • (179) rt_sigsuspend
  • (180) pread64
  • (181) pwrite64
  • (182) chown
  • (183) getcwd
  • (184) capget
  • (185) capset
  • (186) sigaltstack
  • (187) sendfile
  • (188) getpmsg
  • (189) putpmsg
  • (190) vfork
  • (191) ugetrlimit
  • (192) mmap2
  • (193) truncate64
  • (194) ftruncate64
  • (195) stat64
  • (196) lstat64
  • (197) fstat64
  • (198) lchown32
  • (199) getuid32
  • (200) getgid32
  • (201) geteuid32
  • (202) getegid32
  • (203) setreuid32
  • (204) setregid32
  • (205) getgroups32
  • (206) setgroups32
  • (207) fchown32
  • (208) setresuid32
  • (209) getresuid32
  • (210) setresgid32
  • (211) getresgid32
  • (212) chown32
  • (213) setuid32
  • (214) setgid32
  • (215) setfsuid32
  • (216) setfsgid32
  • (217) pivot_root
  • (218) mincore
  • (219) madvise
  • (220) getdents64
  • (221) fcntl64
  • (224) gettid
  • (225) readahead
  • (226) setxattr
  • (227) lsetxattr
  • (228) fsetxattr
  • (229) getxattr
  • (230) lgetxattr
  • (231) fgetxattr
  • (232) listxattr
  • (233) llistxattr
  • (234) flistxattr
  • (235) removexattr
  • (236) lremovexattr
  • (237) fremovexattr
  • (238) tkill
  • (239) sendfile64
  • (240) futex
  • (241) sched_setaffinity
  • (242) sched_getaffinity
  • (243) set_thread_area
  • (244) get_thread_area
  • (245) io_setup
  • (246) io_destroy
  • (247) io_getevents
  • (248) io_submit
  • (249) io_cancel
  • (250) fadvise64
  • (252) exit_group
  • (253) lookup_dcookie
  • (254) epoll_create
  • (255) epoll_ctl
  • (256) epoll_wait
  • (257) remap_file_pages
  • (258) set_tid_address
  • (259) timer_create
  • (260) timer_settime
  • (261) timer_gettime
  • (262) timer_getoverrun
  • (263) timer_delete
  • (264) clock_settime
  • (265) clock_gettime
  • (266) clock_getres
  • (267) clock_nanosleep
  • (268) statfs64
  • (269) fstatfs64
  • (270) tgkill
  • (271) utimes
  • (272) fadvise64_64
  • (273) vserver
  • (274) mbind
  • (275) get_mempolicy
  • (276) set_mempolicy
  • (277) mq_open
  • (278) mq_unlink
  • (279) mq_timedsend
  • (280) mq_timedreceive
  • (281) mq_notify
  • (282) mq_getsetattr
  • (283) kexec_load
  • (284) waitid
  • (286) add_key
  • (287) request_key
  • (288) keyctl
  • (289) ioprio_set
  • (290) ioprio_get
  • (291) inotify_init
  • (292) inotify_add_watch
  • (293) inotify_rm_watch
  • (294) migrate_pages
  • (295) openat
  • (296) mkdirat
  • (297) mknodat
  • (298) fchownat
  • (299) futimesat
  • (300) fstatat64
  • (301) unlinkat
  • (302) renameat
  • (303) linkat
  • (304) symlinkat
  • (305) readlinkat
  • (306) fchmodat
  • (307) faccessat
  • (308) pselect6
  • (309) ppoll
  • (310) unshare
  • (311) set_robust_list
  • (312) get_robust_list
  • (313) splice
  • (314) sync_file_range
  • (315) tee
  • (316) vmsplice
  • (317) move_pages
  • (318) getcpu
  • (319) epoll_pwait
  • (320) utimensat
  • (321) signalfd
  • (322) timerfd_create
  • (323) eventfd
  • (324) fallocate
  • (325) timerfd_settime
  • (326) timerfd_gettime
  • (327) signalfd4
  • (328) eventfd2
  • (329) epoll_create1
  • (330) dup3
  • (331) pipe2
  • (332) inotify_init1
  • (333) preadv
  • (334) pwritev
  • (335) rt_tgsigqueueinfo
  • (336) perf_event_open
  • (337) recvmmsg
  • (338) fanotify_init
  • (339) fanotify_mark
  • (340) prlimit64
  • (341) name_to_handle_at
  • (342) open_by_handle_at
  • (343) clock_adjtime
  • (344) syncfs
  • (345) sendmmsg
  • (346) setns
  • (347) process_vm_readv
  • (348) process_vm_writev
  • (349) kcmp
  • (350) finit_module
  • (353) renameat2
  • (355) getrandom

TMUX does not work

Trying to run tmux results in a ‘Bad system call’ error

# apk add tmux
...
# tmux
Bad system call
#

Can't link ish

I try to build ish but ninja exits with this error:

[377/377] Linking target ish.
FAILED: ish 
cc  -o ish 'ish@exe/main.c.o' -Wl,-headerpad_max_install_names libish.a subprojects/softfloat/libsoftfloat.a subprojects/gdbm-1.14.1/src/libgdbm.a -pthread  
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
  "_va_end", referenced from:
      _make_datum in libish.a(fs_fake.c.o)
  "_va_start", referenced from:
      _make_datum in libish.a(fs_fake.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Cannot run Python3

I’m able to install Python 3 with apk, but when I try to run it I get the output “illegal instruction”. Let me know if I can provide any other useful information.

curl needs poll

As the title says, curl (and possibly other programs) crash iSH when running, with the following notice:

Apr 20 19:03:32 iPhone iSH[3896] <Notice>: TODO: actual working poll

In /kernel/poll.c:

    if (nfds != 1)
        TODO("actual working poll");

--
I have already sent you a crash dump and log.

Many incompatible apps

Nano - Trouble Saving
Emacs - Trouble Doing Anything
Node.js - Trouble Doing Anything

Feature Request: Copy to and paste from clipboard

Currently, it is possible to copy selected text to a clipboard by tapping “Copy” on the context menu, but it seems that it is impossible to paste from it on iSH.

bd0bd83f-a3d0-4927-aef5-36ce444fccad

I believe both of them are essential. Besides, keyboard shortcuts like CMD+V are also welcome if possible.

  • Custom popup menu
  • Paste button in toolbar
  • Hardware keyboard shortcut

Crash when installing/uninstalling Lua

This is the weirdest fucking thing. When you run ish in the debugger, it segfaults at the end of the install, and if you check the pointer in the debugger it looks valid. Then if you click continue, or step, it just keeps going as if nothing was wrong. When you run outside the debugger, it crashes before producing any output, and the crash dump shows the pointer is pointing to an unmapped page surrounded by mapped pages. Not quite sure if it's the same bug.

Error with docker

I ran apk add docker and I got Error executing docker-18-06-1.pre-install: script exited with error 127
But it seems the install finish somehow, then when I run it:
docker This program can only be run on processors with MMX support.

Feature Request: Dark Mode(s)

This is a feature request for dark mode(s). Preferably, a choice between current black-on white, plus a white-on-black, green-on-black, and solarized-on-black theme.

Races and deadlocks

  • Accessing the TLB from two threads at the same time. Solve by creating separate TLB for each cpu.
  • Reading and writing to the poll pipe. Oh god how do I solve this without violating lock ordering.
  • sys_setsid locks pids and then a process, reap_if_zombie locks a process and then calls process_destroy which locks pids.
  • reap_if_zombie doesn't lock the process it passes to process_destroy, though its caller does lock current.
  • Remapping memory needs locking. That memory object is shared, after all.
  • Things like fd_close that use the refcount of the file should lock the file. (More things about the file also need locking but this is a start.)

Of course there's more, but I can only decode so many tsan dumps before my head explodes.

Compiling deasync fails

I spent a bit of time trying to fix this, but I couldn't really figure it out so I thought I'd just report it and hope you would be able to shed more light on this. After cloning iSH and trying to compile it in Xcode, I'm getting errors from the "Run Webpack" phase, and the errors I'm getting seem to suggest that there's a dependency called deasync that is being compiled with the wrong architecture. Here's the log, if you're curious:

Build log
PhaseScriptExecution Run\ Webpack /Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Script-BB4A53AC1FAA49CA00A72ACE.sh (in target: iSH)
    cd /Users/saagarjha/Git/ish
    export ACTION=build
    export AD_HOC_CODE_SIGNING_ALLOWED=NO
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=saagarjha
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
    export ALWAYS_SEARCH_USER_PATHS=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export ARCHS=arm64
    export ARCHS_STANDARD=arm64
    export ARCHS_STANDARD_32_64_BIT="armv7 arm64"
    export ARCHS_STANDARD_32_BIT=armv7
    export ARCHS_STANDARD_64_BIT=arm64
    export ARCHS_STANDARD_INCLUDING_64_BIT=arm64
    export ARCHS_UNIVERSAL_IPHONE_OS="armv7 arm64"
    export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
    export AppIdentifierPrefix=X4A9GH5NN2.
    export BITCODE_GENERATION_MODE=marker
    export BUILD_ACTIVE_RESOURCES_ONLY=YES
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products
    export BUILD_ROOT=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos
    export CACHE_ROOT=/var/folders/x3/wncmj8p52t732rrxyz6h424m0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode
    export CCHROOT=/var/folders/x3/wncmj8p52t732rrxyz6h424m0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode
    export CHMOD=/bin/chmod
    export CHOWN=/usr/sbin/chown
    export CLANG_ANALYZER_NONNULL=YES
    export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION=YES_AGGRESSIVE
    export CLANG_CXX_LANGUAGE_STANDARD=gnu++14
    export CLANG_CXX_LIBRARY=libc++
    export CLANG_ENABLE_MODULES=YES
    export CLANG_ENABLE_OBJC_ARC=YES
    export CLANG_MODULES_BUILD_SESSION_FILE=/Users/saagarjha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
    export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
    export CLANG_WARN_BOOL_CONVERSION=YES
    export CLANG_WARN_COMMA=YES
    export CLANG_WARN_CONSTANT_CONVERSION=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
    export CLANG_WARN_DOCUMENTATION_COMMENTS=YES
    export CLANG_WARN_EMPTY_BODY=YES
    export CLANG_WARN_ENUM_CONVERSION=YES
    export CLANG_WARN_INFINITE_RECURSION=YES
    export CLANG_WARN_INT_CONVERSION=YES
    export CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
    export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
    export CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
    export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
    export CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
    export CLANG_WARN_STRICT_PROTOTYPES=YES
    export CLANG_WARN_SUSPICIOUS_MOVE=YES
    export CLANG_WARN_UNGUARDED_AVAILABILITY=YES_AGGRESSIVE
    export CLANG_WARN_UNREACHABLE_CODE=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
    export CLASS_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/JavaClasses
    export CLEAN_PRECOMPS=YES
    export CLONE_HEADERS=NO
    export CODESIGNING_FOLDER_PATH=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/iSH.app
    export CODE_SIGNING_ALLOWED=YES
    export CODE_SIGNING_REQUIRED=YES
    export CODE_SIGN_CONTEXT_CLASS=XCiPhoneOSCodeSignContext
    export CODE_SIGN_ENTITLEMENTS=app/iSH.entitlements
    export CODE_SIGN_IDENTITY="iPhone Developer"
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
    export CODE_SIGN_STYLE=Automatic
    export COLOR_DIAGNOSTICS=NO
    export COMBINE_HIDPI_IMAGES=NO
    export COMPILER_INDEX_STORE_ENABLE=Default
    export COMPOSITE_SDK_DIRS=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/CompositeSDKs
    export COMPRESS_PNG_FILES=YES
    export CONFIGURATION=Debug
    export CONFIGURATION_BUILD_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos
    export CONFIGURATION_TEMP_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos
    export CONTENTS_FOLDER_PATH=iSH.app
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=NO
    export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
    export CORRESPONDING_SIMULATOR_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
    export CORRESPONDING_SIMULATOR_PLATFORM_NAME=iphonesimulator
    export CORRESPONDING_SIMULATOR_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk
    export CORRESPONDING_SIMULATOR_SDK_NAME=iphonesimulator12.1
    export CP=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export CURRENT_ARCH=undefined_arch
    export CURRENT_PROJECT_VERSION=31
    export CURRENT_VARIANT=normal
    export DEAD_CODE_STRIPPING=YES
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf
    export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
    export DEFINES_MODULE=NO
    export DEPLOYMENT_LOCATION=NO
    export DEPLOYMENT_POSTPROCESSING=NO
    export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=miphoneos-version-min
    export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-miphoneos-version-min=
    export DEPLOYMENT_TARGET_LD_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_LD_FLAG_NAME=ios_version_min
    export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_SUGGESTED_VALUES="8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.0 12.1"
    export DERIVED_FILES_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/DerivedSources
    export DERIVED_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_INSTALL_DIR=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE=en
    export DEVELOPMENT_TEAM=X4A9GH5NN2
    export DEVICE_DEVELOPER_DIR=/Developer
    export DOCUMENTATION_FOLDER_PATH=iSH.app/en.lproj/Documentation
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/tmp/iSH.dst
    export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=iSH.app.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos
    export EFFECTIVE_PLATFORM_NAME=-iphoneos
    export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO
    export EMBEDDED_PROFILE_NAME=embedded.mobileprovision
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
    export ENABLE_BITCODE=NO
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_ON_DEMAND_RESOURCES=YES
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=YES
    export ENTITLEMENTS_ALLOWED=YES
    export ENTITLEMENTS_DESTINATION=Signature
    export ENTITLEMENTS_REQUIRED=YES
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
    export EXECUTABLES_FOLDER_PATH=iSH.app/Executables
    export EXECUTABLE_FOLDER_PATH=iSH.app
    export EXECUTABLE_NAME=iSH
    export EXECUTABLE_PATH=iSH.app/iSH
    export EXPANDED_CODE_SIGN_IDENTITY=3976C2FFBDBF7F787297E255F43B282B9BFF500C
    export EXPANDED_CODE_SIGN_IDENTITY_NAME="iPhone Developer: Saagar Jha (4594JH4V5L)"
    export EXPANDED_PROVISIONING_PROFILE=c5248009-434f-4c99-a4fa-100286495b41
    export FILE_LIST=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects/LinkFileList
    export FIXED_FILES_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/FixedFiles
    export FRAMEWORKS_FOLDER_PATH=iSH.app/Frameworks
    export FRAMEWORK_FLAG_PREFIX=-framework
    export FRAMEWORK_SEARCH_PATHS="/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos "
    export FRAMEWORK_VERSION=A
    export FULL_PRODUCT_NAME=iSH.app
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu11
    export GCC_DYNAMIC_NO_PIC=NO
    export GCC_INLINES_ARE_PRIVATE_EXTERN=YES
    export GCC_NO_COMMON_BLOCKS=YES
    export GCC_OPTIMIZATION_LEVEL=0
    export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
    export GCC_PREPROCESSOR_DEFINITIONS="DEBUG=1 "
    export GCC_SYMBOLS_PRIVATE_EXTERN=NO
    export GCC_THUMB_SUPPORT=YES
    export GCC_TREAT_WARNINGS_AS_ERRORS=NO
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
    export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR
    export GCC_WARN_UNDECLARED_SELECTOR=YES
    export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION=YES
    export GCC_WARN_UNUSED_VARIABLE=YES
    export GENERATE_MASTER_OBJECT_FILE=NO
    export GENERATE_PKGINFO_FILE=YES
    export GENERATE_PROFILING_CODE=NO
    export GENERATE_TEXT_BASED_STUBS=NO
    export GID=20
    export GROUP=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
    export HEADERMAP_USES_VFS=NO
    export HEADER_SEARCH_PATHS="/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/include /Users/saagarjha/Git/ish /Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/meson/subprojects/gdbm-1.18/src"
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/saagarjha
    export ICONV=/usr/bin/iconv
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_FILE=app/Info.plist
    export INFOPLIST_OUTPUT_FORMAT=binary
    export INFOPLIST_PATH=iSH.app/Info.plist
    export INFOPLIST_PREPROCESS=NO
    export INFOSTRINGS_PATH=iSH.app/en.lproj/InfoPlist.strings
    export INLINE_PRIVATE_FRAMEWORKS=NO
    export INSTALLHDRS_COPY_PHASE=NO
    export INSTALLHDRS_SCRIPT_PHASE=NO
    export INSTALL_DIR=/tmp/iSH.dst/Applications
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=saagarjha
    export INSTALL_PATH=/Applications
    export INSTALL_ROOT=/tmp/iSH.dst
    export IPHONEOS_DEPLOYMENT_TARGET=11.0
    export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
    export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES=YES
    export JAVA_ARCHIVE_TYPE=JAR
    export JAVA_COMPILER=/usr/bin/javac
    export JAVA_FOLDER_PATH=iSH.app/Java
    export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    export JAVA_JAR_FLAGS=cv
    export JAVA_SOURCE_SUBDIR=.
    export JAVA_USE_DEPENDENCIES=YES
    export JAVA_ZIP_FLAGS=-urg
    export JIKES_DEFAULT_FLAGS="+E +OLDCSO"
    export KASAN_DEFAULT_CFLAGS="-DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow"
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects-normal/undefined_arch/iSH_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/iSH-LinkMap-normal-undefined_arch.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LD_RUNPATH_SEARCH_PATHS=" @executable_path/Frameworks"
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LEX=lex
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_FLAG_PREFIX=-l
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LIBRARY_SEARCH_PATHS="/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos "
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_FILE_LIST_normal_arm64=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects-normal/arm64/iSH.LinkFileList
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LOCALIZED_RESOURCES_FOLDER_PATH=iSH.app/en.lproj
    export LOCALIZED_STRING_MACRO_NAMES="NSLocalizedString CFLocalizedString"
    export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
    export LOCAL_APPS_DIR=/Applications
    export LOCAL_DEVELOPER_DIR=/Library/Developer
    export LOCAL_LIBRARY_DIR=/Library
    export LOCROOT=/Users/saagarjha/Git/ish
    export LOCSYMROOT=/Users/saagarjha/Git/ish
    export MACH_O_TYPE=mh_execute
    export MAC_OS_X_PRODUCT_BUILD_VERSION=18C38b
    export MAC_OS_X_VERSION_ACTUAL=101402
    export MAC_OS_X_VERSION_MAJOR=101400
    export MAC_OS_X_VERSION_MINOR=1402
    export MESON_BUILD_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/meson
    export METAL_LIBRARY_FILE_BASE=default
    export METAL_LIBRARY_OUTPUT_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/iSH.app
    export MODULE_CACHE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO=YES
    export NATIVE_ARCH=armv7
    export NATIVE_ARCH_32_BIT=i386
    export NATIVE_ARCH_64_BIT=x86_64
    export NATIVE_ARCH_ACTUAL=x86_64
    export NO_COMMON=YES
    export OBJECT_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects
    export OBJECT_FILE_DIR_normal=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects-normal
    export OBJROOT=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex
    export ONLY_ACTIVE_ARCH=YES
    export OS=MACOS
    export OSAC=/usr/bin/osacompile
    export PACKAGE_TYPE=com.apple.package-type.wrapper.application
    export PASCAL_STRINGS=YES
    export PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
    export PBDEVELOPMENTPLIST_PATH=iSH.app/pbdevelopment.plist
    export PER_ARCH_OBJECT_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects-normal/undefined_arch
    export PER_VARIANT_OBJECT_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Objects-normal
    export PKGINFO_FILE_PATH=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/PkgInfo
    export PKGINFO_PATH=iSH.app/PkgInfo
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
    export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    export PLATFORM_DISPLAY_NAME=iOS
    export PLATFORM_NAME=iphoneos
    export PLATFORM_PREFERRED_ARCH=arm64
    export PLATFORM_PRODUCT_BUILD_VERSION=16B91
    export PLIST_FILE_OUTPUT_FORMAT=binary
    export PLUGINS_FOLDER_PATH=iSH.app/PlugIns
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRIVATE_HEADERS_FOLDER_PATH=iSH.app/PrivateHeaders
    export PRODUCT_BUNDLE_IDENTIFIER=com.saagarjha.iSH
    export PRODUCT_MODULE_NAME=iSH
    export PRODUCT_NAME=iSH
    export PRODUCT_SETTINGS_PATH=/Users/saagarjha/Git/ish/app/Info.plist
    export PRODUCT_TYPE=com.apple.product-type.application
    export PROFILING_CODE=NO
    export PROJECT=iSH
    export PROJECT_DERIVED_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/DerivedSources
    export PROJECT_DIR=/Users/saagarjha/Git/ish
    export PROJECT_FILE_PATH=/Users/saagarjha/Git/ish/iSH.xcodeproj
    export PROJECT_NAME=iSH
    export PROJECT_TEMP_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build
    export PROJECT_TEMP_ROOT=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex
    export PROVISIONING_PROFILE_REQUIRED=YES
    export PUBLIC_HEADERS_FOLDER_PATH=iSH.app/Headers
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export RESOURCE_RULES_REQUIRED=YES
    export REZ_COLLECTOR_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/ResourceManagerResources
    export REZ_OBJECTS_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS="/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos "
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SCRIPTS_FOLDER_PATH=iSH.app/Scripts
    export SCRIPT_INPUT_FILE_0=/Users/saagarjha/Git/ish/app/xtermjs
    export SCRIPT_INPUT_FILE_COUNT=1
    export SCRIPT_INPUT_FILE_LIST_COUNT=0
    export SCRIPT_OUTPUT_FILE_0=/Users/saagarjha/Git/ish/app/xtermjs/bundle.js
    export SCRIPT_OUTPUT_FILE_COUNT=1
    export SCRIPT_OUTPUT_FILE_LIST_COUNT=0
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
    export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
    export SDK_DIR_iphoneos12_1=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
    export SDK_NAME=iphoneos12.1
    export SDK_NAMES=iphoneos12.1
    export SDK_PRODUCT_BUILD_VERSION=16B91
    export SDK_VERSION=12.1
    export SDK_VERSION_ACTUAL=120100
    export SDK_VERSION_MAJOR=120000
    export SDK_VERSION_MINOR=100
    export SED=/usr/bin/sed
    export SEPARATE_STRIP=NO
    export SEPARATE_SYMBOL_EDIT=NO
    export SET_DIR_MODE_OWNER_GROUP=YES
    export SET_FILE_MODE_OWNER_GROUP=NO
    export SHALLOW_BUNDLE=YES
    export SHARED_DERIVED_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos/DerivedSources
    export SHARED_FRAMEWORKS_FOLDER_PATH=iSH.app/SharedFrameworks
    export SHARED_PRECOMPS_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/PrecompiledHeaders
    export SHARED_SUPPORT_FOLDER_PATH=iSH.app/SharedSupport
    export SKIP_INSTALL=NO
    export SOURCE_ROOT=/Users/saagarjha/Git/ish
    export SRCROOT=/Users/saagarjha/Git/ish
    export STRINGS_FILE_OUTPUT_ENCODING=binary
    export STRIP_BITCODE_FROM_COPIED_FILES=YES
    export STRIP_INSTALLED_PRODUCT=YES
    export STRIP_STYLE=all
    export STRIP_SWIFT_SYMBOLS=YES
    export SUPPORTED_DEVICE_FAMILIES=1,2
    export SUPPORTED_PLATFORMS="iphoneos iphonesimulator"
    export SUPPORTS_TEXT_BASED_API=NO
    export SWIFT_PLATFORM_TARGET_PREFIX=ios
    export SYMROOT=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products
    export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
    export SYSTEM_APPS_DIR=/Applications
    export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
    export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library"
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools"
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools"
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools"
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
    export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TAPI_VERIFY_MODE=ErrorsOnly
    export TARGETED_DEVICE_FAMILY=1,2
    export TARGETNAME=iSH
    export TARGET_BUILD_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Products/Debug-iphoneos
    export TARGET_DEVICE_IDENTIFIER=70d1ae8c4aa6b7300a18c75ff50abc61ad42fce9
    export TARGET_DEVICE_MODEL=iPhone8,4
    export TARGET_DEVICE_OS_VERSION=12.1.1
    export TARGET_NAME=iSH
    export TARGET_TEMP_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build
    export TEMP_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build
    export TEMP_FILES_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build
    export TEMP_FILE_DIR=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build
    export TEMP_ROOT=/Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex
    export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
    export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
    export TeamIdentifierPrefix=X4A9GH5NN2.
    export UID=501
    export UNLOCALIZED_RESOURCES_FOLDER_PATH=iSH.app
    export UNSTRIPPED_PRODUCT=NO
    export USER=saagarjha
    export USER_APPS_DIR=/Users/saagarjha/Applications
    export USER_LIBRARY_DIR=/Users/saagarjha/Library
    export USE_DYNAMIC_NO_PIC=YES
    export USE_HEADERMAP=YES
    export USE_HEADER_SYMLINKS=NO
    export VALIDATE_PRODUCT=NO
    export VALID_ARCHS=arm64
    export VERBOSE_PBXCP=NO
    export VERSIONING_SYSTEM=apple-generic
    export VERSIONPLIST_PATH=iSH.app/version.plist
    export VERSION_INFO_BUILDER=saagarjha
    export VERSION_INFO_FILE=iSH_vers.c
    export VERSION_INFO_STRING=""@(#)PROGRAM:iSH  PROJECT:iSH-31""
    export WARNING_CFLAGS=-Wno-ambiguous-macro
    export WRAPPER_EXTENSION=app
    export WRAPPER_NAME=iSH.app
    export WRAPPER_SUFFIX=.app
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
    export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_INSTALL_PATH=/Applications/Xcode.app/Contents/Developer/../../..
    export XCODE_PRODUCT_BUILD_VERSION=10B61
    export XCODE_VERSION_ACTUAL=1010
    export XCODE_VERSION_MAJOR=1000
    export XCODE_VERSION_MINOR=1010
    export XPCSERVICES_FOLDER_PATH=iSH.app/XPCServices
    export YACC=yacc
    export arch=undefined_arch
    export variant=normal
    /bin/sh -c /Users/saagarjha/Library/Developer/Xcode/DerivedData/iSH-ezrqnmvucwlkhugluyhqsldczpeb/Build/Intermediates.noindex/iSH.build/Debug-iphoneos/iSH.build/Script-BB4A53AC1FAA49CA00A72ACE.sh

yarn install v1.12.3
warning package.json: No license field
warning xtermjs-glue: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /Users/saagarjha/Git/ish/app/xtermjs/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments: 
Directory: /Users/saagarjha/Git/ish/app/xtermjs/node_modules/deasync
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/saagarjha/Git/ish/app/xtermjs/node_modules/deasync/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/saagarjha/.node-gyp/11.1.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/saagarjha/.node-gyp/11.1.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/saagarjha/.node-gyp/11.1.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/deasync',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/deasync/src/deasync.o
clang: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' [-Wincompatible-sysroot]
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:48:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv/errno.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/errno.h:32:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/errno.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/errno.h:72:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/cdefs.h:784:2: error: Unsupported architecture
#error Unsupported architecture
 ^
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
 ^
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
        ^
note: '__uint128_t' declared here
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_wctype_t;
        ^
note: '__uint128_t' declared here
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
 ^
In file included from ../src/deasync.cc:1:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:75:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
typedef __darwin_va_list va_list;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/deasync/src/deasync.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node/11.1.0/bin/node" "/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/saagarjha/Git/ish/app/xtermjs/node_modules/deasync
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning Error running install script for optional dependency: "/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments: 
Directory: /Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for \"/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/saagarjha/.node-gyp/11.1.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/saagarjha/.node-gyp/11.1.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/saagarjha/.node-gyp/11.1.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  SOLINK_MODULE(target) Release/.node
clang: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' [-Wincompatible-sysroot]
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/lib/libc++.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/lib/libc++.tbd (4 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/lib/libSystem.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/lib/libSystem.tbd (4 slices)
  CXX(target) Release/obj.target/fse/fsevents.o
clang: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' [-Wincompatible-sysroot]
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:48:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv/errno.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/errno.h:32:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/errno.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/errno.h:72:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/cdefs.h:784:2: error: Unsupported architecture
#error Unsupported architecture
 ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
 ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
        ^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
        ^
note: '__uint128_t' declared here
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_wctype_t;
        ^
note: '__uint128_t' declared here
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
 ^
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:50:
In file included from /Users/saagarjha/.node-gyp/11.1.0/include/node/uv.h:51:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdio.h:108:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/_stdio.h:75:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
typedef __darwin_va_list va_list;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command \"/usr/local/Cellar/node/11.1.0/bin/node\" \"/usr/local/Cellar/node/11.1.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64\" \"--napi_version=3\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents
gyp ERR! node -v v11.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/11.1.0/bin/node\" \"/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents
node-pre-gyp ERR! node -v v11.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok 
Failed to execute 'node-gyp build --fallback-to-build --module=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/saagarjha/Git/ish/app/xtermjs/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)"
info This module is OPTIONAL, you can safely ignore this error

Any ideas as to what might be going wrong here? I'm using Xcode Version 10.1 (10B61) on macOS Mojave 10.14.2 Beta (18C38b).

wtf

tbodt@arch-vm ~/i/build> ./ish tests/busybox sh
pwd
/home/tbodt/ish/build
sleep -.1
sh: /usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin//usr/sbin/: Exec format error
could not handle page fault at 72737533, exiting

Add support for UTF-8 or something

Trying to use special characters (emoji not included?) iSH displays it with the ASCII encoding?
å, ä, ö and ü are a few problematic characters.

ssh

Attempting to ssh into a server fails with:

fcntl(3, F_GETFL): Invalid argument
Host key verification failed.

illegal instruction (fsubr)

2 080481f7 --- cycle 31533
2 08048357 --- compiling:
2 08048357  55 push obp
2 08048358  89 mov reg, modrm   reg=esp opcode=4 base=ebp
2 0804835a  83 grp1 imm8, modrm reg=ebp opcode=5 base=esp imm 18 sub
2 0804835d  d9 fpu          reg=edi opcode=7 base=ebp offset=-0xfffffff6 fnstcw mem16
2 08048360  dd fpu          reg=eax opcode=0 base=ebp offset=0x8 fld mem64
2 08048363  d9 fpu          reg=eax opcode=0 base=eax fld st(i)
2 08048365  66 entering 16 bit mode
2 08048366  8b mov modrm, reg   reg=eax opcode=0 base=ebp offset=-0xfffffff6
2 08048369  80 grp1 imm8, modrm8    reg=ecx opcode=1 base=esp imm c or
2 0804836c  66 entering 16 bit mode
2 0804836d  89 mov reg, modrm   reg=eax opcode=0 base=ebp offset=-0xfffffff4
2 08048370  d9 fpu          reg=eax opcode=0 base=eax fld st(i)
2 08048372  d9 fpu          reg=ebp opcode=5 base=ebp offset=-0xfffffff4 fldcw mem16
2 08048375  df fpu          reg=edi opcode=7 base=ebp offset=-0xffffffe8 fistp mem64
2 08048378  d9 fpu          reg=ebp opcode=5 base=ebp offset=-0xfffffff6 fldcw mem16
2 0804837b  8b mov modrm, reg   reg=eax opcode=0 base=ebp offset=-0xffffffe8
2 0804837e  8b mov modrm, reg   reg=edx opcode=2 base=ebp offset=-0xffffffec
2 08048381  89 mov reg, modrm   reg=eax opcode=0 base=ebp offset=-0xffffffe8
2 08048384  89 mov reg, modrm   reg=edx opcode=2 base=ebp offset=-0xffffffec
2 08048387  df fpu          reg=ebp opcode=5 base=ebp offset=-0xffffffe8 fild mem64
2 0804838a  dd fpu          reg=ebx opcode=3 base=ebp offset=-0xfffffff8 fstp mem64
2 0804838d  dd fpu          reg=eax opcode=0 base=ebp offset=-0xfffffff8 fld mem64
2 08048390  d8 fpu          reg=ebp opcode=5 base=edx undefined2 08048357 --- cycle 31534

2 illegal instruction at 0x8048390: d8 ea dd 5d f8 dd 45 f8
$ rasm2 -d 'd8eadd5df8dd45f8'
fsubr st(2)
fstp qword [ebp - 8]
fld qword [ebp - 8]

Repro: x86.linux.elf.zip

Here's the block executing correctly in usercorn:

main+0x110
0x8048357: push ebp                         |    esp = 0xbffff938 | W bffff938
R 0xbffff940: 9a999999 9999f13f             [.......?            ] R
W 0xbffff93c: 08820408                      [....                ] W
0x8048358: mov ebp, esp                     |    ebp = 0xbffff938
0x804835a: sub esp, 0x18                    | eflags = 0x00000080
                                            +    esp = 0xbffff920
0x804835d: fnstcw word ptr [ebp - 0xa]      |                     | W bffff92e
0x8048360: fld qword ptr [ebp + 8]          |                     | R bffff940
0x8048363: fld st(0)                        |                    
0x8048365: mov ax, word ptr [ebp - 0xa]     |                     | R bffff92e
0x8048369: or ah, 0xc                       |    eax = 0x00000c00
                                            + eflags = 0x00000004
0x804836c: mov word ptr [ebp - 0xc], ax     |                     | W bffff92c
0x8048370: fld st(0)                        |                    
0x8048372: fldcw word ptr [ebp - 0xc]       |                     | R bffff92c
0x8048375: fistp qword ptr [ebp - 0x18]     |                     | W bffff920
0x8048378: fldcw word ptr [ebp - 0xa]       |                     | R bffff92e
0x804837b: mov eax, dword ptr [ebp - 0x18]  |    eax = 0x00000001 | R bffff920
0x804837e: mov edx, dword ptr [ebp - 0x14]  |    edx = 0x00000000 | R bffff924
0x8048381: mov dword ptr [ebp - 0x18], eax  |                     | W bffff920
0x8048384: mov dword ptr [ebp - 0x14], edx  |                     | W bffff924
0x8048387: fild qword ptr [ebp - 0x18]      |                     | R bffff920
0x804838a: fstp qword ptr [ebp - 8]         |                     | W bffff930
0x804838d: fld qword ptr [ebp - 8]          |                     | R bffff930
0x8048390: fsubr st(2)                      |                    
0x8048392: fstp qword ptr [ebp - 8]         |                     | W bffff930
0x8048395: fld qword ptr [ebp - 8]          |                     | R bffff930
0x8048398: fldz                             |                    
0x804839a: fxch st(1)                       |                    
0x804839c: fucomi st(1)                     | eflags = 0x00000000
0x804839e: fstp st(1)                       |                    
0x80483a0: jp 0x80483a8                     |                    

Edit: looks like this is just some fpu instructions generally missing

apk update with gcc in release mode causes explosion

Error loading shared library libssl.so.44: Exec format error (needed by /sbin/apk)
Error loading shared library libcrypto.so.42: Exec format error (needed by /sbin/apk)
Error loading shared library libz.so.1: Exec format error (needed by /sbin/apk)

followed by many errors about symbols that could not be found

have never noticed this when using clang

clarification: this only happens when building the project with gcc

Feature request: Siri Shortcuts integration

I know the focus right now is compatibility with the basic userland, but what about making it possible to pipe inputs and outputs through Siri shortcuts a.k.a. Workflows?
It would make it possible to ”Shell out” from any app supporting it without the need of a remote server.

First Idea that comes to mind:

  • Open example code website
  • share action -> Shortcuts app
  • choose a workflow with action “run iSH command”
  • exec command with clipboard pasted as stdin
  • return stdout back to the shortcuts workflow

Long term goals

This might be a pipe dream and a whole lot of stupidity/misinformation so I apologize ahead of time but... could you not have just have cross-compiled QEMU's x86 software emulation to the ARM instructions iOS devices use? Would that approach even be possible/let alone offer you any benefit?

Do you see this as the basis for a "VirtualBox" for iOS? Emulating an ethernet controller, graphics controller, etc...

If people could use a Bluetooth mouse + keyboard with their iPad through an x86-backed virtual machine to develop... that might be something? Obviously performance would be a concern...

GDB does not work

I tried to install gdb with the hope of debugging why tmux wouldn’t work (another issue I submitted) and found out that gdb doesn’t work either :(

# apk add gdb
...
# gdb tmux
Segmentation Fault
# gdb -h
Segmentation Fault
# gdb
Segmentation Fault
#

krb5 doen't work

After installing krb5 package, I tried to kinit but failed with this message below.

kinit: Failed to store credentials: Invalid argument (filename: /tmp/krb5cc_0) while getting initial credentials

ruby-irb crashes

iPad:~# irb                                                                                                                                                       
<main>: warning: Failed to create communication pipe for timer thread: No error information                                                                       
Traceback (most recent call last):                                                                                                                                
SEGV received in ILL handler       

Adduser crashes iSH

Running adduser without any arguments works well, but once you add any argument(s) the app crashes.

[iPhone 6 running iOS 11.2]

golang needs MMX

go 1.10.1.-r0 refuses to run stating 'This program can only be run of processors with MMX support'

Steps to reproduce:

  1. apk add go
  2. go

(PS. keep up the good work! I've been wanting something like this for a long time!)

Causing network issues

I have observed network issues on iOS 12.1.1 beta 2.

  • Use your device to access the internet and observe it works
  • Open ish
  • Invoke commands in ish that access the internet
  • Attempt to access the internet in other iOS apps, and observe that it does not work anymore
  • Reboot iOS device
  • Observe the network working again
  • Open ish, and use the network a bunch
  • Observe a reoccurrence of the issue

Error when downloading most things

When I tried to download rustup I got an SSL read error when trying to download the rustup installer, or cloning into github repos.

I run the following:

# apk add curl
# curl https://sh.rustup.rs | sh
...
curl: (56) LibreSSL SSL_read: error:06FFF064:digital envelope routines:CRYPTO_internal:bad decrypt, errno 0
...

Any pointers into what's happening? I am very new to this :)

Crash from badly formatted curl piped into shell

I got this crash when trying to download the rustup toolchain. Full crash in the app.

Here's my command to reproduce it.

# curl https://sh.rustup.rs | sh -s --y

After doing this two times I now have a crash-on-launch version of the app. I believe I might need a reinstall. I will send you the crashlogs by mail.

Error upgrading busybox to 1.26.2-r9

apk upgrade

attempts to upgrade busybox from 1.26.2-r5 to 1.26.2-r9 and results in the following error
a6916100-cf06-431e-967f-6dc732eeb623

it also results in errors when installing other apps:
69b2d3bd-76da-41bb-be7e-8d6aabf60c04

Automatically configure DNS

Set 8.8.8.8 and 8.8.4.4 as the default in /etc/resolve.conf to obviate the need to set it at every launch.

No esc key

There ought to be an escape key so it’s possible to exit vi.

Emacs does not work

When do apk add emacs then try to run emacs, I get:
# emacs
Fatal error 31: Bad argument to system callBad system call
#

Keyboard improvements

Keyboard should start with lowercase characters. Also utilize maybe the function keys that you can edit in iOS and add maybe like a / or something. Also a doule tap on the log should close the keyboard too :)

  • disable autocapitalization
  • add extra row of keys with commonly used symbols
  • add some way to close the keyboard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.