following pods are integrated into targets that do not have the same Swift version

后端 未结 6 938

I am updating my project to Swift 3. When updating some of my cocoapods to swift 3, I receive the following message in terminal, after running pod install:

          


        
6条回答
  •  盖世英雄少女心
    2021-01-17 09:06

    This problem gets worse with Xcode 9 since it supports both 3.2 and 4.0 swift versions, but Cocoa Pods doesn't support this yet:

    [!] The following pods are integrated into targets that do not have the same Swift version:
    - XCGLogger required by target1 (Swift 4.0), target2 (Swift 3.0)
    

    Workaround: switch target1 to swift 3.2 temporarily, install cocoa pods, then switch it back to swift 4.0.

提交回复
热议问题