A skeuomorphic internet radio for the original iPod touch 3rd generation running iOS 5.1.1, the way Apple might have designed it in 2012: a varnished wooden tabletop radio with a glowing tube display, a backlit 16-segment name display and a cloth speaker grille.
It's written in Objective-C with UIKit for armv7. It's built with Theos on a modern Mac, without Xcode, against a patched SDK, and checked against the real iOS 5.1.1 system libraries.
Rendered with the app's own drawing code (tools/render-preview.sh). Every image in the app is drawn procedurally with CoreGraphics; there are no bitmap assets.
- Streams internet radio from your own links: MP3 and AAC/AAC+ (SHOUTcast/Icecast) over http,
.pls/.m3uplaylist links, HLS. - Saved stations: add, edit, delete and reorder them. Each link is checked before saving, and the station's announced name is filled in for you.
- Station logos from Photos, from an image link, or found automatically on the station's website.
- Tube display that warms up when playing, a 16-segment display that scrolls long names, a pilot lamp and friendly error messages.
- Background audio, phone call/alarm interruption handling, automatic reconnect after drop-outs.
- Lock screen: a miniature of the radio as artwork, plus play/pause and previous/next station controls.
- Remembers the last station.
Requirements: an iPod touch (or iPhone) with iOS 5.x, jailbroken.
Download the latest build from the Releases page, then use one of the two formats:
.ipa: needs AppSync Unified from Cydia. Copy the file to the device and open it with iFile (tap → Installer) or any IPA installer..deb: install with iFile, or over SSH withdpkg -i, followed bysu mobile -c uicache.
Install only one of the two (see Release build below).
The rest of this README covers building the app yourself, which is unusual for a 2012 target on a 2026 Mac. docs/milestone-1-notes.md tells the story of the toolchain problems that were solved.
Current Apple tools officially dropped 32-bit iOS years ago. This project still builds a correct iOS 5 binary with the stock Command Line Tools:
| Piece | Choice | Why |
|---|---|---|
| Compiler / linker | Apple clang + ld from Command Line Tools |
clang still has the ARM backend; ld still emits armv7 |
| SDK | iPhoneOS9.3.sdk from theos/sdks, patched |
The newest SDK with armv7 stubs that keeps armv7-only symbols (objc_msgSend_stret). 10.3 drops them. |
| Deployment target | -miphoneos-version-min=5.0 |
Produces LC_VERSION_MIN_IPHONEOS 5.0, LC_UNIXTHREAD, classic LC_DYLD_INFO_ONLY (no chained fixups) |
| API guard | -Werror=partial-availability -Werror=unguarded-availability |
Any API newer than iOS 5.0 is a compile error |
| Instruction set | ARM mode (-marm), not Thumb-2 |
The modern linker drops the Thumb bit from code pointers stored as data (ObjC method IMPs, callbacks, blocks). Thumb methods would be entered in ARM mode, causing SIGILL on launch |
| Clang modules | off (RetroRadio_USE_MODULES = 0) |
The 9.3 SDK's legacy module.map files are rejected by modern clang |
| Signing | ldid -S -Hsha1 |
SHA-1-only CodeDirectory; iOS 5 predates SHA-256 code signing |
| Package | .deb, gzip payload |
iOS 5-era dpkg can't read xz/zstd |
-
The 9.3
.tbdstubs listi386, x86_64next to the ARM archs. The modern linker then classifies them as iOS-simulator and refuses to link. The script strips the simulator archs. -
The 9.3 stubs omit
memset,memcpy,strcmpand similar routines, which moved tolibsystem_platformon iOS 7+. On iOS 5 they are normallibsystem_cexports reached throughlibSystem.B.dylib, which is what the binary binds to. The script declares them. -
The 9.3 stubs put
NSObjectinlibobjc. On iOS 5 it lives in CoreFoundation (it moved in iOS 6). Without this fix, dyld on the device fails withSymbol not found: _OBJC_METACLASS_$_NSObject … Expected in libobjc. The script moves it, which makes this SDK copy iOS 5-specific. -
The 9.3 stubs put the URL-loading classes (
NSURLConnection,NSURLRequest, …) in CFNetwork. On iOS 5 they are in Foundation.
The script is idempotent.
Every gmake runs tools/verify-ios5-bindings.py. It reads the iPod's own system libraries (its dyld shared cache, copied once to ~/theos/sdks/iOS5.1.1-9B206/) and fails if any imported symbol doesn't exist in the library the binary expects on iOS 5.1.1. This catches "Symbol not found" launch crashes on the Mac. To fetch the cache again:
ssh ipod 'cat /System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv7' \
> ~/theos/sdks/iOS5.1.1-9B206/dyld_shared_cache_armv7Check bindings with dyld_info -fixups <binary> | grep bind: every symbol must come from the library that exports it on iOS 5.
ARC is enabled. clang wants to link libarclite for targets below iOS 6, but current tools no longer ship it. Theos compiles and links in separate steps, so arclite is never requested. On iOS 5 the ARC runtime (objc_retain, objc_storeStrong, weak references and so on) is native. arclite only added object subscripting, so:
Do not use
array[i]/dict[key]subscripting. UseobjectAtIndex:/objectForKey:. Literals (@[],@{},@42) are fine.
Some UIKit properties are typed with iOS 6 enums in the 9.3 headers (for example UILabel.textAlignment). Use the iOS 5 constants via Sources/UI/RRCompat.h (RRTextAlignmentCenter, …). Deprecation warnings are silenced on purpose, because the deprecated APIs are the iOS 5 ones.
xcode-select --install # Command Line Tools (Xcode not needed)
brew install ldid dpkg make libimobiledevice
git clone --recursive https://github.com/theos/theos ~/theos
# SDK: download theos/sdks and copy iPhoneOS9.3.sdk into ~/theos/sdks/
curl -L -o /tmp/sdks.tar.gz https://github.com/theos/sdks/archive/refs/heads/master.tar.gz
tar -xzf /tmp/sdks.tar.gz -C /tmp 'sdks-master/iPhoneOS9.3.sdk'
mv /tmp/sdks-master/iPhoneOS9.3.sdk ~/theos/sdks/
./tools/patch-sdk.sh # required, see above
export THEOS=~/theos # add to ~/.zshrc if you likemake must be GNU make 4+. Use gmake, because macOS's /usr/bin/make is 3.81.
export THEOS=~/theos
gmake package # -> packages/com.retroradio.app_<ver>_iphoneos-arm.deb
gmake package FINALPACKAGE=1 # optimized, no debug suffixQuick sanity check of the binary:
otool -l .theos/obj/debug/armv7/RetroRadio.app/RetroRadio | grep -A3 LC_VERSION_MIN # version 5.0
nm -u .theos/obj/debug/armv7/RetroRadio.app/RetroRadio # only iOS 5 symbolsRequirements on the iPod: a jailbreak with Cydia and OpenSSH installed.
- Start the USB tunnel in a separate terminal and leave it running:
Use the
iproxy 2222:22
2222:22syntax. The legacyiproxy 2222 22form binds IPv6 only, solocalhost/127.0.0.1connections are refused. - Add this to
~/.ssh/config. The iPod runs OpenSSH 6.7, which only offersssh-rsa/ssh-dsshost keys. OpenSSH 10 on the Mac disables ssh-rsa by default and has removed DSA.Host ipod HostName 127.0.0.1 Port 2222 User root HostKeyAlgorithms +ssh-rsa IdentityFile ~/.ssh/ipod_ed25519 - Key login, so installs don't prompt for a password each time. The default root password on iOS 5 jailbreaks is
alpine, so change it withpasswdon the device.ssh-keygen -t ed25519 -f ~/.ssh/ipod_ed25519 -N "" ssh-copy-id -i ~/.ssh/ipod_ed25519.pub ipod ssh ipod 'uname -a' # should print Darwin ... iPod3,1
gmake package install # copies the .deb over SSH, runs dpkg -i, then uicacheOr by hand:
scp packages/*.deb ipod:/tmp/rr.deb
ssh ipod 'dpkg -i /tmp/rr.deb && su mobile -c uicache'The Retro Radio icon appears on the home screen. Tap it. If the icon shows up blank, restart SpringBoard (ssh ipod killall SpringBoard) so it re-renders its icon cache.
To launch remotely, Activator must be installed and the iPod unlocked: ssh ipod activator send com.retroradio.app. Use idevicesyslog on the Mac to watch the live log.
Uninstall: ssh ipod 'dpkg -r com.retroradio.app && su mobile -c uicache'.
./tools/make-release.shThis builds the optimized release and writes both formats to dist/:
com.retroradio.app_<version>_iphoneos-arm.deb: install withdpkg -ior iFile (rootful, into/Applications).RetroRadio-<version>.ipa: install with AppSync Unified on the device, then open the file in iFile (tap → Installer), or use any IPA installer. Unsigned IPAs need AppSync.
Install only one of the two. Both use the bundle id com.retroradio.app, so remove the other first (dpkg -r com.retroradio.app for the .deb). They also keep stations in different places: the .deb version uses /var/mobile/Library/RetroRadio/, while the IPA version is sandboxed and uses its own container. Stations don't carry over between them.
ssh ipod 'ls -t /var/mobile/Library/Logs/CrashReporter/ | head'
ssh ipod 'cat /var/mobile/Library/Logs/CrashReporter/RetroRadio_*.plist' | less
# Live log (install "syslogd to /var/log/syslog" from Cydia first):
ssh ipod 'tail -f /var/log/syslog'A dyld: Symbol not found message means a symbol that doesn't exist on iOS 5 slipped through. Check it with nm -u.
Makefile Theos build (target, flags, signing, packaging)
control Debian package metadata
Resources/ Info.plist, prerendered icons, Default.png launch image (all generated by tools/render-assets.sh)
Sources/
Model/RRStation station (id, name, link, website)
Model/RRStationStore station management: ordered list, add/edit/delete/move, last station
Storage/RRStationStorage ~/Library/RetroRadio/Stations.plist + last-station id (NSUserDefaults)
Network/RRStreamResolver link clean-up, .pls/.m3u playlist resolution
Network/RRStreamProbe "does this link play?" check + icy-name/icy-url before saving
Network/RRStreamErrors user-facing error messages
Network/RRLogoPageParser finds logo candidates in a station web page (apple-touch-icon, og:image, favicon)
Network/RRLogoFinder downloads logos (image link, or automatic from the station website)
Storage/RRLogoStore ~/Library/RetroRadio/Logos/<station id>.png (max 160 px)
Audio/RRAudioSession playback audio session, interruptions (iOS 5 delegate API)
Playback/RRRadioPlayer AVPlayer engine: states, metadata, reconnect, lock-screen info
Art/RRRadioArt all artwork (cabinet, tube, 16-segment display, knobs, icon, lock-screen card), CoreGraphics only
Art/RRSegmentFont 16-segment glyphs and rendering
UI/ radio screen, station list, add/edit form, display views
tools/patch-sdk.sh Makes iPhoneOS9.3.sdk linkable with the modern ld
tools/verify-ios5-bindings.py Checks every import against the real iOS 5.1.1 libraries (runs on every build)
tools/render-assets.sh Regenerates icons + launch image from Sources/Art
tools/render-preview.sh Renders the radio screen / lock-screen artwork on the Mac
- Rootful jailbreaks only (installs to
/Applications). That is correct for iOS 5. - No Xcode / Interface Builder: the UI is built in code.
- Headers come from iOS 9.3. The compiler blocks newer-than-5.0 APIs, but the headers may still describe iOS 5 classes slightly differently from the real iOS 5 SDK (types, nullability).
- Designed and tested on the 320×480 non-Retina iPod touch 3G. Other iOS 5 devices with 3.5" screens should work (the artwork is drawn at the screen scale), but they are untested.
- Streams: plain
http://MP3 (audio/mpeg) and AAC/AAC+ (audio/aac,audio/aacp) SHOUTcast/Icecast streams are the expected-good case..pls/.m3uplaylist links are opened automatically. HLS (.m3u8) is passed to AVPlayer. If a link doesn't work, the app tells the user to find another link for that station. - Logos over https: iOS 5 only speaks TLS 1.0, which most https sites refuse. The logo finder tries the
http://version of every image first. Sites that force https (e.g. Radio Disney's) may give no automatic logo; use Photos or an http image link instead. - Song titles don't appear yet (postponed). Both test stations do send titles (SHOUTcast
icy-metaint), but iOS 5's AVPlayer never reported them (timedMetadatastayed empty). A future fix is reading the ICY metadata ourselves with a small side connection. - Networking: iOS 5.1.1 supports TLS only up to 1.0 by default. Many modern HTTPS servers require TLS 1.2+, so plain
http://stream links are the most reliable. A TLS tweak such as TLSFix from Cydia makes modern https work.
MIT. Retro Radio isn't affiliated with Apple. iPod and iOS are trademarks of Apple Inc. Radio station names and logos belong to their owners; the app ships with no stations or logos.
Built with Theos. The SDK comes from theos/sdks and isn't included in this repository, and neither are any Apple binaries.


