Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Archive Xcode Project, Error No such module 'Alamofire'

I installed Alamofire via cocoapods successfully and have been using it when building and running the app on a device from Xcode. Now when I go to archive my project for distribution I get the error:

No such module 'Alamofire'

I switched my provisioning profile to the correct Ad Hoc profile I've been using for distribution, but since I switched to using cocoapods instead of manually installing Alamofire I've been unable to archive. I tried to fix by setting "Build Active Architecture Only" to "No" under build settings but no luck.

like image 338
Jonathan Avatar asked Jun 09 '16 21:06

Jonathan


2 Answers

There is a chance of mismatch versions between

enter image description here

and pod global platform for your project

enter image description here

like image 124
Ratnesh Shukla Avatar answered Nov 12 '22 08:11

Ratnesh Shukla


I had different bug with same outcome. Bug was caused by custom build scheme which used wrong configuration to create archive. Archiving reported unrecognized library.

enter image description here

After changing configuration to AdHoc_Fortex_D_Env archiving recognized all libraries.

like image 40
slobodans Avatar answered Nov 12 '22 07:11

slobodans