I had a problem with Xcode (using Swift) that completely surpassed me. I understand that this question was asked and answered, but none of the answers worked for me, and my situation seems to be slightly different from the rest, since all my pods do not work (and not just specific ones). They all worked great a week ago.
I use Cocoapods for some of the most common Swift frameworks (e.g. Alamofire, Eureka, Kingfisher, SwiftyJSON, etc.). All of them worked fine in Xcode 7. However, one of the (automatic) updates prompted my version of Xcode, after which it became mandatory to specify your target in the podfile. I did this and completed the pod installation. Codes are still there, but now every import expression related to these frameworks fails.
At first, I thought it was Alamofire's problem, because the first one failed with the error "There is no such Alamofire module." I tried everything I could with Alamofire, including the following:
- Clean and restore
- Empty build folder
- Restart xcode
- Boot computer
- Delete all derived data
- Added structure for "Related structures and libraries."
- Added structure for "Linking binaries to libraries"
- Checked that I open the workspace, not the project
- Reinstalled CocoaPods
- Reinstalled Xcode ver 7.3.1
Nothing will remove the error "There is no such module ...". Finally, I removed Alamofire from the pods and just dragged the Alamofire project into my project. This allowed me to remove import statements for Alamofire. However, to my dismay, now the following structure called "No such module." I have moved the next three frameworks to my project, and it looks like it is only going to continue. Apparently, none of my subsystems in Pods are recognized. I installed Xcode 8 and tried it with Swift 2.3, but I get the same error "There is no such module."
I would prefer to use Cocoapods, as it simplifies upgrades along with other bonuses. I guess I have the wrong setting that clogs all my pods, but no luck finding it. This is a bit of a disaster, as it closed the development for several days without any signs of correction. If there is anything I can do or provide to help find a solution, just let me know. If someone could offer any possible solutions or even try, it would be very helpful. I am currently working with Xcode version 7.3.1.
My pod file looks something like this:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'Y2GOsp' do use_frameworks!
ios xcode swift cocoapods podfile
Lastmboy
source share