SwiftHTTP module not found error when trying to import

I’m having trouble getting SwiftHTTP to work in my iOS project. I’ve tried adding the SwiftHTTP.xcodeproject file to my workspace and included all 4 SwiftHTTP.framework files in the build phases section. However, when I try to add import SwiftHTTP at the top of my view controller file, I keep getting the “No such module SwiftHTTP” error message.

I’ve tested this on both Xcode 6.4 and 7.1 but the same issue persists. The frameworks appear to be linked properly in the project settings, but the import statement fails to recognize the module. Has anyone encountered this problem before? What could be causing the module to not be found even though the frameworks are properly added to the build phases?

same issue here! remove all frameworks first, then add back only the one for your target - likely swiftHTTP-ios. dont mix debug/release versions either, spent hours on that mistake. xcode gets finicky with multiple framework files.

I’ve encountered a similar issue before and it usually stems from workspace configuration. Make sure to build SwiftHTTP before your main target as this can affect the recognition of the module. Check your scheme settings to ensure the build order is correct. Additionally, verify that you’re importing the module from the correct target. Xcode can sometimes fail to automatically configure dependencies despite all frameworks being linked. Adding SwiftHTTP as a target dependency in your build phases (under Target Dependencies) might resolve the issue.

I understand how irritating this issue can be. It’s worth checking whether the SwiftHTTP framework is compatible with the architecture of your project; mismatches here often lead to similar errors. Additionally, cleaning your build folder can help eliminate any cached data that might be causing conflicts. Ensure that in your schemes, SwiftHTTP builds prior to your main app target. Lastly, verify the framework search paths in your build settings, as incorrect paths can prevent proper module recognition.