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
Xcode 12 + AudioKit 4.11 Problems #2267
Comments
Yeah, well I just compiled AudioKit for Xcode 12, it was easy, but as long as @megastep is cool with it, we'll make an AudioKit 4.11 release for Xcode 12 shortly. |
https://github.com/AudioKit/AudioKit/releases/tag/v4.11 will be updated with frameworks etc soon, and hopefully cocoapods as well. |
Just pushed the v4.11 pod for Xcode 12 - let me know if it works for you! If you want to play with v5, we do have an experimental pod version 5.0.b2 - though you should consider using SPM instead. |
Hi, we have multiple errors: Using last version:
|
Mmh, I did remove a bit of script that I thought was no longer needed, fixing the Swift module interfaces. I might have to turn that back on... |
OK, I just updated the zip file. Please clean your pod cache and try again with a clean install... |
How does one know if they are installing the New 4.11 or the Old 4.11 ? |
I would do |
Ok, but now we have |
Yes same errors here |
Same erreur here |
I should have checked here before jump into the Xcode 12 :-/ (my mistake). |
Thanks for the updated builds @aure. However, I'm running into this issue when archiving my app (see screenshot). Any ideas? I used the 4.11 framework from the link https://github.com/AudioKit/AudioKit/releases/tag/v4.11 |
@meilers are you on Xcode 11 still? These new frameworks include ARM64 slices for the simulator for the new Macs with Apple Silicon. I thought these would be simply ignored by previous versions. |
@megastep Nope. On Xcode 12 since yesterday. |
uh, that is odd - is it only happening when archiving your app? |
@megastep Correct. I can run the app just fine in the simulator. |
Maybe that's a limitation because you can't submit apps for Apple Silicon yet? Did you override any architecture settings in your project/target? It makes little sense to me because this is an XCFramework and when you archive for a device the simulator stuff should just be completely ignored. |
@megastep I agree it is weird. What do the simulators have to do with archives? And no, I didn't override any architecture settings. It's a pretty vanilla project. Let me try with a new project and I'll let you know. |
One of the biggest problems with publishing universal binary frameworks with Xcode 12 is because of this Apple Silicon slice - so you end up having arm64 slices for both the iOS and Mac architectures. Pretty much have to rely only on XCFrameworks at this point as we can't splice together these same-CPU slices anymore. At the same time AK4 was triggering some bugs in LLVM because of the AudioKit class, and it appears that is still the case. That doesn't necessarily mean that we can't ship functioning frameworks for CocoaPods here, but it might take more work than anticipated. If you can't wait you can checkout the |
@megastep Thanks for the clarification. That makes sense. By the way, just tested on a brand new project. Dumped the frameworks from the previous link. and same error when archiving. |
@megastep Are you sure that SPM works for AudioKitUI? It works for AudioKit, but not for AudioKitUI. I'm getting the "No such module AudioKitUI" error. |
@meilers No more AudioKitUI in AudioKit5. |
Mostly its in there, just don't have to import a separate framework anymore. |
@aure Not sure I understand. If I remove "import AudioKitUI" I get plenty more reference errors like "Cannot find type AKNodeOutputPlot in scope". Am I missing something here? |
@meilers If you are using v5, try dropping the AK prefix on the classes it says it can't find. Most of those have been dropped, except a few like AKMIDI. |
@aure Yes, I should be. I'm pointing to the v5-develop branch. |
I missed that comment, now everything is working, thank you so much for your amazing effort. edit: sorry for that but when I install v4.11.1 into simulator, everything is working fine, success built, but when I try to run on my real device which has ios 14, I got those errors: I have tried to change |
Well that is interesting, it should definitely work the same for devices as the simulator. The target error is weird though - why would it be looking for ARM64 simulator unless you are on an Apple Silicon Mac? |
FYI I don't get any of these errors with the new frameworks, compiling for devices or archiving. If you are actually on Apple Silicon, you'd be better off actually switching to v5. |
I'm having the exact same issues as @fattalgazi, and I'm on a 16 inch Intel. Currently running through a list of possible fixes and will get back to this thread if I find one that works. |
What's your iOS SDK target version in your project? You might need to raise it to something more recent. |
12.4 |
Not happening for me with my own project using the pod, and I'm targeting iOS 10. I would guess that maybe CocoaPods might be responsible for this... I am using the latest beta of 1.10. |
Updating CocoaPods from 1.9.3 to 1.10.0.rc.1 got rid of the "unable to load standard library" errors when running on a device for me. |
Good to hear. Sounds like something they needed to address for Xcode 12. |
Brilliant effort in getting this far this fast. Well done.
Have installed 4.11.1 from pod. Target is iOS 13.6.
For me, the line micReverb_03 = AKReverb()
triggers the following runtime error when running app on my phone:
Fatal error: Use of unimplemented initializer 'init()' for class 'AudioKit.AKReverb'
Kind regards,
Peter Dann
… On 20 Sep 2020, at 10:01 am, Stéphane Peter ***@***.***> wrote:
v4.11.1 is now out and the pod was pushed; let me know if this fixes your issues (it should). You will have to update your code to replace all references to the AudioKit class to AKManager instead. In most cases this should just be a 2-3 line code change.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2267 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APUJ53CWLAQDVTAAWP6ZS7DSGVA5NANCNFSM4RPLFCNQ>.
|
I have a similar new runtime error too. Mine occurs both on simulator and device. For the line: |
Sounds like something else to do with the generated Swift interfaces - I suggest opening a different issue for this. |
@fattalgazi
You don't need to change the import, you keep |
Running pod update does not update to 4.11.1. What am I doing wrong? On cocoapods.org it also shows that 4.11 is the latest release. |
Manually downloading the package from the "releases" tab and inserting it into the /Pods folder did the trick though. |
@vojtabohm > Running pod update does not update to 4.11.1. What am I doing wrong? On cocoapods.org it also shows that 4.11 is the latest release.
|
Ok updating cocopods solves all problems. Thank you. |
I'm running a MacOS project and was having trouble getting rid of all the errors with the new 4.11.1 build.
|
@megastep on Xcode Version 12.0 (12A7209) I still get these two issues with 4.11.1. I tried deleting derived data, cleaning pod cache, de-integrating and installing pods again but nothing fixed it.
The only AudioKit references I have are these lines:
|
Updating CocoaPods to 1.10.0.rc.1 got rid of the "unable to load standard library" errors for me. |
Thank you @aure @megastep for your amazing work. Now it works on 4.11.1 for me. Just had to change de pod ios platform from 9.0 to 11.0. |
Building ok with 4.11.1 and Xcode12 and a few AudioKit.* renames. New issue added here : #2276 |
Hi @brizzly, just replace AudioKit by AKManager.ADMIDISampler, I guess... |
It was not enough , but another work around did the trick, to know more about it have a look at the issue 2276 |
Updated to
|
Looks like these are referencing files that are on my Mac since I'm the one who built the binaries... :/ |
I could install |
Hi. I just wanted to ask if there is a planned support for v4 of AudioKit in Xcode 12? Or if there is a documentation for the v5 beta version which works in Xcode 12.
I cannot compile my app in Xcode 12 and hence cannot prepare it for the iOS 14 which is now already released. I have went into detail in this stackoverflow post.
https://stackoverflow.com/questions/63860545/implementing-microphone-analysis-with-audiokit-v5
Thank you.
The text was updated successfully, but these errors were encountered: