BasiliskII for iOS

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

BasiliskII for iOS

Post by gingerbeardman »

Is anybody else using this?

https://github.com/zydeco/macemu/tree/i ... II/src/iOS

note: use ios branch

It's not well advertised and I only found out about this fork & branch after filing some issues/requests for minivmac4ios.

I built the code using Xcode 11.3.1 on Mojave 10.14.6 and had to add in one missing #ifdef __IPHONE_13_4 for it to build:
https://github.com/zydeco/macemu/blob/e ... mm#L82-L85

But it's quite amazing on an iPad! Thanks to @zydeco

I made some changes to run it in chunky mode (iPad Pro 12.9" fits 512x342@4x resolution very nicely) and I also added double height mode (well, pretty much it needs to have room left for the iPad home indicator).

It supports File Sharing, so you can download an hqx/sit/bin in Safari to Files and then send it to BasiliskII using iOS Share Sheet mechanism and the file is then accessible from a drive on the emulated Mac.

Monitor resolution changing without rebooting (via System 7.5 Monitors panel or equivalent) for switching between portrait and landscape orientations.

Apple Pencil is supported as a regular touch, feels very nice to draw with.

I'd love to see:
- proper Apple Pencil StrokeGestureRecognizer support
- which would bring with it support for palm rejection (for drawing)
- support for multi touch to be able to do one finger panning whilst drawing

bug asks:
- Apple Pencil pressure support masquerading as a Wacom
- support for Split View (I can enable it but it presents some issues with menu bar touch recognition)

Image
Last edited by gingerbeardman on Wed Mar 31, 2021 11:47 pm, edited 5 times in total.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Second image showing "full resolution" of 1024x1366 portrait mode on iPad Pro 12.9"

Image
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

adespoton wrote: Thu Apr 01, 2021 5:21 pm That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
Please do!

I have Mini vMac on here too, but Basilisk allows so much more.

Could easily be a daily driver with safari in Slide Over for web browsing and downloading.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

gingerbeardman wrote: Thu Apr 01, 2021 7:35 pm
adespoton wrote: Thu Apr 01, 2021 5:21 pm That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
Please do!

I have Mini vMac on here too, but Basilisk allows so much more.

Could easily be a daily driver with safari in Slide Over for web browsing and downloading.
Couple of questions: first, how did you get around:
error: Build input file cannot be found: '/Users/<user>/Projects/macemu4ios/BasiliskII/src/uae_cpu/cpustbl.cpp' (in target 'BasiliskII' from project 'BasiliskII')

Second, where exactly where you adding the ifdef? around the highlighted conditional?
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

I didn't get that uae error.

Did you clone the repo and are you on the iOS branch?
Just downloading the code won't work.

Regarding the ifdef, yes, around the conditional.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

Yeah; seems like even though I thought I was in the IOS branch, I checked out MAIN. So after adding that IFDEF, everything's great! A bit slow on the iPad 2, but works fine at 15fps. Seems like some of the later fixes from kanjitalk755's fork would improve things significantly here.

I'm also curious to see if this iOS build can be spun out to work on macOS, as the UI is pretty useful.
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Indeed, we'll have to see what happens
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

I started a blog and am writing about this System 7 on iPad journey.

https://blog.gingerbeardman.com
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

I fell down a rabbit hole there... https://blog.gingerbeardman.com/2021/04 ... le-events/ outlines how to do something I've been attempting (but failing) to do for 31 years! I always found QuicKeys too bulky (and expensive), but KeyQuencer just didn't provide me with a decent way to handle apple events. So I always fell back on AppleScript and xcmds/xfcns to do my dirty work.

But the combination of QuicKeys as a discovery tool and KeyQuencer as the execution platform looks like the perfect combination! Thanks for the blog... too bad I didn't read it 31 years ago ;)

Any chance you could whip up some handlers for SuperPaint as well?
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

31 years! Better late than never, eh? :lol:

I'll take a look at SuperPaint. It's too old for Apple Events but it's toolbar is attached to the window so it should be possible to use the clicking method with window-relative coordinates.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
jrdpizzo
Space Cadet
Posts: 1
Joined: Tue May 11, 2021 1:32 pm

Re: BasiliskII for iOS

Post by jrdpizzo »

Just found this and it’s awesome. I’m not a developer… so it took a little work to get it to compile with Xcode. But, I’ve loaded up 7.5.5 with the tools I used to use in college: WriteNow, ClarisWorks, Star Trek the 25th Anniversary Game and more. On my iPad Air 3 it’s really, really fast.

Two questions:
1 - Has anyone been able to get the audio to work. I don’t have any sound.
2 - Is there a virtual keyboard? I have a Bluetooth keyboard so it works that way…. but there doesn’t seem to be an onscreen one.
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

jrdpizzo wrote: Tue May 11, 2021 1:37 pm Just found this and it’s awesome. I’m not a developer… so it took a little work to get it to compile with Xcode. But, I’ve loaded up 7.5.5 with the tools I used to use in college: WriteNow, ClarisWorks, Star Trek the 25th Anniversary Game and more. On my iPad Air 3 it’s really, really fast.

Two questions:
1 - Has anyone been able to get the audio to work. I don’t have any sound.
2 - Is there a virtual keyboard? I have a Bluetooth keyboard so it works that way…. but there doesn’t seem to be an onscreen one.
There's a great virtual keyboard; I use that all the time. I always work with sound turned off, but I just turned my ringer on to test, and sound seems crystal clear on my iPhone 6+.
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Swipe up/down with two fingers to show/hide the on-screen keyboard.

Shake your device at any time to show settings interface (same one that appears when you first launch).

Sound works for me. Mostly error beeps!
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
Halcyon
Space Cadet
Posts: 9
Joined: Sat Dec 30, 2017 12:34 am

Re: BasiliskII for iOS

Post by Halcyon »

Whoa, this is awesome. I had no idea it was possible to run BasiliskII on iOS. I'm not an Xcode user so I had to fumble my way through some of the setup steps that aren't mentioned in @gingerbeardman 's excellent blog post, but I was able to get Mac OS 7.6 running on my 11" iPad Pro without too much fuss. I'm running at the default 1194x834 resolution and it looks great. With the keyboard case and a paired bluetooth trackpad, input feels great.

Sound is _not_ working for me, not sure what to try there. I'll experiment with different OS versions maybe.

Big thanks to @zydeco for making this happen and @gingerbeardman for helping me learn about it!
User avatar
gingerbeardman
Tinkerer
Posts: 51
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

I'm interested to know the steps that may be missing! I'll add them to the guide.

Have fun.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
Halcyon
Space Cadet
Posts: 9
Joined: Sat Dec 30, 2017 12:34 am

Re: BasiliskII for iOS

Post by Halcyon »

gingerbeardman wrote: Sat Jun 19, 2021 10:49 pm I'm interested to know the steps that may be missing!
Hi! My setup is Xcode 12.5 on Big Sur 11.4 and I ran into build failures that required two changes:

1. In Xcode preferences, I had to add my Apple ID under Accounts. I've previously played around with Xcode enough that my Apple ID is associated with a "Personal Team" and certificate, but I totally forget how all that stuff works, so I assume someone using Xcode for the first time would have some additional steps to get this part setup.

2. In the BasiliskII.xcodeproject settings under Signing & Capabilities, I had to change the default Bundle Identifier to something unique. I may have also had to set the Team field to my "Personal Team" but I don't remember now if I actually changed this field.

This is probably obvious stuff to someone who has used Xcode before.
Halcyon
Space Cadet
Posts: 9
Joined: Sat Dec 30, 2017 12:34 am

Re: BasiliskII for iOS

Post by Halcyon »

I finally got sound working, but the solution was unexpected. While troubleshooting I noticed that something was wrong with sound in iPadOS overall: while I could play music from the Music app and test the ringer sounds in Settings, the keyboard click and Lock Screen sound effects would not play even when I explicitly enabled them. I don't use my iPad often, so maybe it's been like this for some time. I couldn't figure out why this was happening and eventually gave up and tried "Reset Settings". For whatever reason, this fixed both my keyboard/Lock Screen sounds as well as Basilisk.

Along the way I also ran into the issue described in the "System Alert sounds with BII and system 7.5.3 on Win10 64bit" thread where all of the Alert Sounds in the system control panel were playing the default beep sound effect, which I was able to fix by using the Quadra, Centris 610,650 ROM w/ checksum F1A6F343.

Hope this helps someone else or future self when I forget how I set this up :P
User avatar
adespoton
Forum All-Star
Posts: 3395
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

One other thing to note is that in a lot of emulators, the ringer switch toggles audio -- so if your device is in vibrate only mode, you won't have sound. Turning it to ring mode will enable sound. I haven't checked if that's the case with BII, but I suspect it is.
Halcyon
Space Cadet
Posts: 9
Joined: Sat Dec 30, 2017 12:34 am

Re: BasiliskII for iOS

Post by Halcyon »

adespoton wrote: Mon Jun 21, 2021 4:02 pm One other thing to note is that in a lot of emulators, the ringer switch toggles audio -- so if your device is in vibrate only mode, you won't have sound. Turning it to ring mode will enable sound. I haven't checked if that's the case with BII, but I suspect it is.
In the case of the iPad there's no hardware ringer toggle, but now that you mention this I bet I had the software silent mode enabled. :facepalm
Post Reply