No such module … in Xcode

旧城冷巷雨未停 提交于 2019-11-29 02:02:21

Comments from @l'L'l led me to the solution. I went to

build settings > frameworks search path

and set it to the following:

$(inherited) (non-recursive)
$(PROJECT_DIR)/build/Debug-iphoneos (non-recursive)
$(SRCROOT) (recursive)

It is now correctly finding the pod frameworks.

Make sure you opened the .xcworkspace file in Xcode and not just the .xcodeproj file.

try to make the version of your SDK into earlier versions

pod 'Alamofire', '~> 3.0'
pod 'AlecrimCoreData', '~> 4.0'
pod 'Kingfisher', '~> 2.4'
pod 'Eureka', '~> 1.6'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'PhoneNumberKit', '~> 0.1'
pod 'PKHUD'
pod 'Dollar'

for example change 3.0 to available previous version, it worked once for me when i was facing the same issue.

pod 'Alamofire', '~> 2.4' #I am assuming prev available version is 2.4

But it doesn't have to be the "Alamofire" version result in "No such Module", you may try every one in your list in the pod file.

In Pod file

Uncomment below lines to define a global platform for your project

platform :ios, '10.0'

use_frameworks!

Now in xcode

a) Clean your project

b) Make sure that all your "Pods" > "Build Settings" > "Build Active Architecture Only" is set to "NO"

c) Now, build project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!