Related AudioKit structure not recognized by Xcode

When I create a new Xcode project that references (unlike CocoaPods, etc.) to one of the AudioKit frameworks, Xcode does not autofill AudioKit declarations and explicitly declares an AudioKit object (for example, AKMIDISampler), resulting in a build error: AKMIDISampler 'is not available : Cannot find Swift declaration for this class.

Typically, the problem is entering the wireframe search paths correctly in Xcode. However, although I have added a relative path to the structure for both my goal and my project, I still get the same results.

This is probably a problem with all third-party structures, but I ask for it here, referring to AudioKit, as I saw that this question appeared in the AudioKit support group on Google.

What is the best practice in creating a new project for using AudioKit so that AudioKit is recognized and autocomplete works?

+4
source share
1 answer

I have developed a solution and will post it here for future reference.

Here is a step-by-step guide to get your setup using AudioKit.

Two things to note:

  • This solution was published using Xcode 9.1.
  • The AudioKit framework used in this solution are pre-created binaries downloaded from http://audiokit.io/downloads/ . I placed them in the “Libraries” folder with two folders, from where I save my projects.

Steps:

  • Create a new project in Xcode
  • " " "+". " ..." AudioKit. " " , , . " " , , .
  • " " " Framework". $() . $(SRCROOT)/. $(SRCROOT)/../../_ Libraries/AudioKit-iOS

AudioKit, .

3 , , . , SRCROOT , , . SRCROOT .

+4

Source: https://habr.com/ru/post/1689218/


All Articles