简体   繁体   English

AudioKit 为设备编译,而不是为模拟器编译

[英]AudioKit compiles for device, not for Simulator

I am having a problem where AudioKit 4.0 (today's build), won't compile on the simulator.我遇到了 AudioKit 4.0(今天的版本)无法在模拟器上编译的问题。 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.我怀疑我的项目设置有问题,但它们看起来与 AK 示例相同。

I'm running Xcode 9.2 b2 on MBP running 10.13.2 Beta (17C67b).我在运行 10.13.2 Beta (17C67b) 的 MBP 上运行 Xcode 9.2 b2。

Update更新

I built a new system on a different computer.我在另一台计算机上构建了一个新系统。 This is running GM 10.13.1 and GM Xcode 9.1.这是运行 GM 10.13.1 和 GM Xcode 9.1。

The source (my app) however, is in iCloud documents.然而,源(我的应用程序)在 iCloud 文档中。

I rebuilt Audiokit and AudiokitUI from a fresh download, but am getting the same results as yesterday.我从全新下载中重建了 Audiokit 和 AudiokitUI,但得到的结果与昨天相同。

I did notice though that there are two warnings: " Umbrella header for AK4ParamRampBase.hpp not found " and same for AK4LinearParamRamp.hpp我确实注意到有两个警告:“ Umbrella header for AK4ParamRampBase.hpp not found ”和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.尝试下载另一个版本的 AudioKit,或者在导出框架之前重建设备和模拟器中的版本。 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 https://medium.com/swiftindia/build-a-custom-universal-framework-on-ios-swift-549c084de7c8

Good Example of building a framework构建框架的好例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM