Using framework which use alamofire

I have a framework named NetworkFramework which uses alamofire. Of course, somewhere in my sources, I have : import Alamofire My framework has a podfile which contains:

target 'NetworkFramework' do
  use_frameworks!

  # Pods for NetworkFramework
  pod 'Alamofire', '~> 5.5.0'

end

if I want to use this framework in an App I have 2 possibilities (if I don't mistake)

  1. import NetworkFramework and his sources in the app
  2. simply import NetworkFramework.framework

In the first case, all is compiled and there is no problem.

In the second case, when I try to compile the App, I got an error which is No such module Alamofire

I don't understand why. Do I have to compile the App with the sources of the framework?

Using framework which use alamofire
 
 
Q