Getting error “No such module” using Xcode, but the framework is there

前端 未结 30 2179
小蘑菇
小蘑菇 2020-11-22 05:02

I\'m currently coding in Swift, and I\'ve got an error:

No such module Social

But I don\'t understand, because the module is in

30条回答
  •  耶瑟儿~
    2020-11-22 05:46

    I had the same issue using Cocoapods and Swift. I didn't notice the following lines in the Podfile:

    # Uncomment this line if you're using Swift
    # use_frameworks!
    

    So, all I had to do was change it to:

    # Uncomment this line if you're using Swift
    use_frameworks!
    

    ...aaand it worked :)

提交回复
热议问题