A module compiled with Swift 4.0 cannot be imported into Swift 3.2.2: AudioKit

I just updated xCode to the latest version and get an error when trying to create.

"A module compiled with Swift 4.0 cannot be imported into Swift 3.2.2: /Users/james/Documents/MyApp/Pods/AudioKit/iOS/AudioKit.framework/Modules/AudioKit.swiftmodule/x86_64.swiftmodule"

It worked before I updated the latest xCode.

+5
source share
4 answers

First, if you update Xcode Xcode-> preferences-> LocationsTab and change the version of Xcode for the command line. Now check here AudioKitReleases

pod 'AudioKit', '~> 4.0.3' 

AudioKit V4.0.3 Xcode 9.1 Pod Swift AudioKit pod update AudioKit

+2

, Xcode 9.1 Swift 3.2.2, Swift, , Swift 4.0 ( Xcode 9.0). , Swift, .

+3

AudioKit CocoaPods, 'pod install', Swift 4/Xcode 9.1 ver of AK. (Shift + CMD + K) . , Xcode .

:

(1) AudioKit
(2) :

$ cd AudioKit/Frameworks
$ ./build_frameworks.sh

(3) , (Shift + CMD + K) Xcode

,

0

- https://github.com/AudioKit/AudioKit/releases, , X-, pod. Xcode 10.1, pod pod 'AudioKit', '4.5' .

0
source

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


All Articles