Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't seem to work with iOS 14 on iPad. #17

Open
luisgmnz opened this issue Nov 16, 2020 · 4 comments
Open

It doesn't seem to work with iOS 14 on iPad. #17

luisgmnz opened this issue Nov 16, 2020 · 4 comments

Comments

@luisgmnz
Copy link

luisgmnz commented Nov 16, 2020

Is there a compatibility issue? Current playgrounds version: 3.3.1
It says:
INVALID PLAYGROUND BOOK
Audiokit.playgroundmodule: Unable to open module.

@AlessioSbarzella
Copy link

Same here...

@sparky742
Copy link

I see this issue also. "Invalid Playground Book" Unable to open module.

@marcolabreu
Copy link

marcolabreu commented Dec 3, 2020

The module folder structure needs a small update—all code has to be in a Sources subfolder—to eliminate the Invalid Playground Book error. Easy to do, now the book will open but the code won't run due to deprecated API calls and other issues. Errors can be seen on a Mac, here are some instructions.

On a Mac, do the following:

  1. right-click or ctrl+click the iPad Playground file and chose Show Package Contents;
  2. open Contents / Modules / AudioKit.playgroundmodule, select all its subfolders, right-click or ctrl+click, chose New Folder with Selection, and rename the newly created folder as Sources. Now AudioKit.playgroundmodule should have only one subfolder called Sources with Internals, Nodes, and UI subfolders inside;
  3. still on a Mac, open the file—install the free Apple Playgrounds app if you don't have it—, open Preferences on the menu (or command+,) and enable Authoring Debug Mode;
  4. on any page, even the initial one, click on the Run My Code button in the low right and wait.

The list is long but the majority of the errors require just renaming calls.

Before investing time trying to fix I would like to hear from the core team: is there a way to just use the iOS framework as a module here?

@aure
Copy link
Member

aure commented Dec 4, 2020

Unfortunately, Playgrounds only allows for Swift files whereas the full AudioKit frameworks has a lot of C. This may change someday, but I believe it is still a limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants