TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Simulating Slices of iOS Apps

45 pointsby codyd51over 1 year ago

3 comments

codyd51over 1 year ago
Hi everyone! This post is a writeup of some curiosities from the course of developing an iOS app simulator from scratch.<p>Like with any simulator, it was immensely gratifying watching third-party code run in an entirely controlled virtual environment!<p>This project also got me very familiar with some unintuitive AArch64 addressing rules, and taught me the internals of how funny Objective-C constructors that accept variadic arguments lists are handled.<p>In one late-night push, I managed to get the real CoreFoundation library dynamically loaded and running, which meant that the real standard library was able to create bona-fide Objective-C objects!<p>This post also goes into some fun bugs I created for myself, such as the simulator skipping over undefined functions resulting in an infinite loop when simulated code tried to abort(). I hope it&#x27;s fun to follow along with, and thanks for reading!
评论 #39006236 未加载
评论 #39008940 未加载
评论 #39024716 未加载
m3kw9over 1 year ago
I’m not seeing how you are simulating iOS apps without running the actual OS
评论 #39008619 未加载
saagarjhaover 1 year ago
This is an interesting design for an emulator. Are you planning to do some sort of symbolic execution with it? It seems set up to facilitate it so I’m curious where you’re going with it.
评论 #39011968 未加载