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.

+3
ios swift ios-frameworks


source to share


No one has answered this question yet

Check out similar questions:

545
IOS app with broken infrastructure on device, dyld: library not loaded, Xcode 6 Beta
106
Resistance iOS Static vs Dynamic frameworks
78
Getting "file not found" in "Bridge Header" when importing Objective-C frameworks into Swift project
2
dyld: library not loaded when embedding binary using Cocoapods
2
Failed to access public class from iOS Swift framework
1
Simple Swift Framework dependency
1
Cannot call value of non-functional type "ThreadConfined.Type" - Swift 4.0
1
Swift strings: no type "Business" in module
1
Link and post compiled.a in Swift framework?
0
Unable to call value of non-functional module <f1> '



All Articles
Loading...
X
Show
Funny
Dev
Pics