I’m having trouble getting SwiftHTTP to work in my iOS project. Here’s what I’ve done so far:
Added the SwiftHTTP.xcodeproject file to my workspace
In the build phases section, I included all 4 SwiftHTTP.framework files
Tried to use import SwiftHTTP in my ViewController
But I keep getting the same error message: “No such module SwiftHTTP”
I’ve tested this on both Xcode 6.4 and 7.1 and the problem persists. Has anyone encountered this issue before? I’m not sure what step I might be missing in the integration process. Any help would be appreciated!
Had the exact same issue last month. Xcode can’t find the compiled framework even though you added it to the project. First, build SwiftHTTP for the right architecture - simulator for simulator, device for device. Once SwiftHTTP builds successfully, go to your main target’s General tab and drag the framework from Products into Embedded Binaries. I initially missed that the framework needs to be compiled before you embed it. Also check that your deployment targets match between SwiftHTTP and your main project.
This happens when the framework isn’t linked properly or the module map isn’t recognized. I hit this same issue last year - manually adding the framework to ‘Embedded Binaries’ in your target settings usually fixes it. Just add the framework for your target platform, not all 4 (causes conflicts). Double-check your framework search paths in build settings too. Still broken? Clean your build folder and delete derived data, then rebuild. Swift’s module system gets weird with manually integrated frameworks.
classic linking issue. try switching to CocoaPods or Carthage - manual integration is a pain. if u want to stick with it, just add the framework that suits your target (sim vs device). also double-check that SwiftHTTP and ur project use the same Swift version or it’ll break imports.