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

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

    If you are using Carthage, the frameworks in building setting usually stay in

    $(PROJECT_DIR)/Carthage/Build/iOS

    If you run carthage update --platform ios --no-build (to save time) the files inside Build folder will not be reacreated, then the modules will no available to XCode.

    In my case, I have run carthage update --platform ios, then my problem was solved.

提交回复
热议问题