简体   繁体   中英

Xcode fails to archive app with Alamofire

I can run my app in the simulator and on my device just fine. However, as soon as I try to archive the app (in order to upload it to iTunes Connect) the process fails.

Could not build Objective-C module 'Alamofire'

I have included Alamofire as a git submodule in my app. I have already submitted various betas to iTunes Connect and never encountered this problem before.

I did not change any build settings though. Any other idea what could be wrong ? The problem seems related to this issue in github but no solution was provided.

Thanks in advance for any help.

Do You use other modules with Alamofire in Your project? If so the solution is adding a dependencies of Alamofire to other modules to, same as in main project. Another solution could be Derived data from xCode. Go to your xCode project and clean all Derived data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM