ошибки при создании AudioKit Cookbook с бета-версией 5

#ios #swift #audiokit

#iOS #swift #audiokit

Вопрос:

Я пытаюсь создать AudioKit Cookbook с версией XCode 12.0.1 (12A7300), и я получаю эти ошибки:

 /Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Shaker.swift:13:30: Value of type 'CallbackLoop' has no member 'start'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Shaker.swift:13:45: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Shaker.swift:40:14: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrippingSounds.swift:28:37: Value of type 'CallbackLoop' has no member 'frequency'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrippingSounds.swift:45:19: Value of type 'CallbackLoop' has no member 'start'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrippingSounds.swift:53:15: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrumSynthesizers.swift:15:30: Value of type 'CallbackLoop' has no member 'start'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrumSynthesizers.swift:15:45: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/DrumSynthesizers.swift:55:14: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Flute.swift:13:30: Value of type 'CallbackLoop' has no member 'start'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Flute.swift:13:45: Value of type 'CallbackLoop' has no member 'stop'
/Users/ali/Documents/Development/Cookbook/Cookbook/Cookbook/Recipes/Flute.swift:43:14: Value of type 'CallbackLoop' has no member 'stop'
  

Комментарии:

1. Я должен добавить, что если я не скомпилирую 4 файла swift, перечисленные выше, и не удалю ссылки на них в представлениях, тогда Cookbook компилируется и работает нормально.

Ответ №1:

Вам необходимо обновить пакет AudioKit Swift до последней версии. Я внес некоторые изменения как в AudioKit, так и в Cookbook. Я думаю, я должен сделать master на основе v5-master и разработать на основе v5-develop, чтобы это не повторилось с людьми в будущем.