iOS: “no such module” with Alamofire

萝らか妹 提交于 2019-12-23 02:18:11

问题


I have this error when I try to archive my app (adHoc or distribution)

"NO SUCH MODULE"

I followed all the instructions in the official page

https://github.com/Alamofire/Alamofire#manually (manually installation)

But when I RUN my app it works fine, and when I try to ARCHIVE it to get ipa for distribution or adHoc version, I get the error in the image above.

What happen?

p.s. I use xCode 7.0.1 with swift 2.0

Thanks


回答1:


This is a strange issue being seen with Xcode 7.0.1, Swift 2.0. Even I am seeing the same issue here. Current workaround is to include the Alamofire sources directly into your project and remove the framework.

Once you add the Alamofire sources, you need to remove the 'Alamofire' module prefix to successfully build the project.

Note: None of the solutions mentioned in Cannot install Alamofire in new Xcode Project. "No Such module Alamofire"

are working for me at the moment!.

This seems to be an issue with Xcode 7.0.1 than Alamofire.



来源:https://stackoverflow.com/questions/33042068/ios-no-such-module-with-alamofire

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