TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Simulating Slices of iOS Apps

45 点作者 codyd51超过 1 年前

3 条评论

codyd51超过 1 年前
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 未加载
m3kw9超过 1 年前
I’m not seeing how you are simulating iOS apps without running the actual OS
评论 #39008619 未加载
saagarjha超过 1 年前
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 未加载