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

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

    I was getting the same error as i added couple of frameworks using Cocoapods. If we are using Pods in our project, we should use xcodeworkspace instead of xcodeproject. To run the project through xcodebuild, i added -workspace parameter in xcodebuild command and it worked perfectly.

提交回复
热议问题