I am having a problem where AudioKit 4.0 (today's build), won't compile on the simulator. It compiles just fine for a device.
The errors I'm getting are:
'AKMicrophone' is unavailable: cannot find Swift declaration for this class
'AKFrequencyTracker' is unavailable: cannot find Swift declaration for this class
'AKBooster' is unavailable: cannot find Swift declaration for this class
I suspect I have a problem with my project settings, but they look the same as for an AK example.
I'm running Xcode 9.2 b2 on MBP running 10.13.2 Beta (17C67b).
I built a new system on a different computer. This is running GM 10.13.1 and GM Xcode 9.1.
The source (my app) however, is in iCloud documents.
I rebuilt Audiokit and AudiokitUI from a fresh download, but am getting the same results as yesterday.
I did notice though that there are two warnings: "Umbrella header for AK4ParamRampBase.hpp not found
" and same for AK4LinearParamRamp.hpp
What other things can I try?
Try downloading another version of AudioKit, or rebuild the version you have in the device and the simulator before exporting the framework. Make sure the framework is built in both Device/Simulator. If the project is built only in “Simulator”, it would only generate architectures which would let the framework run specifically on simulators not on Devices. Or if the project is built in “Device”, it would generate architectures which would let the framework to run only on devices.
https://medium.com/swiftindia/build-a-custom-universal-framework-on-ios-swift-549c084de7c8
Good Example of building a framework
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With