Cannot call module value of non-functional type <MyFramework> '
I created a Swift 3 framework and now I want to test it in a sample app. For this, firstly, I built it , I removed it to my sample application, I linked it with the required binaries and frameworks, and I added it import MyFramwork
to the source file.
This works well ... only if the target is "Generic iOS Device". If I choose something else, like "iPhone 7", an error appears:
cannot call value of non-function type 'module<MyFramework>'
... when I call my class constructor:
let myClassHandler = myFrameworkClass(value1: "Foo", value2: "bar")
I have no idea about the source of the problem and I haven't found anything about it on the internet.
I'll take care of it, thanks :)
EDIT:
If I put the xcodeproj file with Framework link it works. But if I only include my Framework. I am getting the previous error. I cannot provide the Framework source code for our clients, so I cannot include the xcodeproj file.
source to share
No one has answered this question yet
Check out similar questions: