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

前端 未结 30 1731
小蘑菇
小蘑菇 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:42

    The following steps worked for me.

    1. Quit xcode
    2. Run "pod update" in terminal
    3. Open .xcworkspace and build again.
    0 讨论(0)
  • Please compare this screenshot with your build setting. It may this work. Go to the framework search path:

    0 讨论(0)
  • 2020-11-22 05:44

    Be sure, that Find implicit Dependencies in Build options in Scheme is on!

    0 讨论(0)
  • 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 :)

    0 讨论(0)
  • 2020-11-22 05:47

    If you're building for a platform like tvOS, make sure you have an Apple TV (i.e. matching) simulator selected.

    Building a tvOS app with an iOS simulator selected gave me exactly this error. Spent the better part of an hour looking for all sorts of build issues... doh.

    0 讨论(0)
  • 2020-11-22 05:47

    I found that the Import Paths in the Build Settings was wrong for a custom (MySQL) module. After pointing that to the right direction the message was gone.

    0 讨论(0)
提交回复
热议问题