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

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

    In my case the app the IPHONEOS_DEPLOYMENT_TARGET was set to 9.3 whereas in my newly created framework it was set to 10.2

    The implicit dependencies resolver ignored my new framework because the requirements of the target platform are higher than the app requirements.

    After adjusting the framework iOS Deployment Target to match my application deployment target the framework compiled and linked successfully.

提交回复
热议问题