Question

I have a File.framework file and wish to link it against my project by using the Other Linker Flags section of the build. Its under build settings, Other Linker Flags.

Typically it has -framework Cocoa type entries, but I have a framework file I want to reference. How can I link the framework file?

Was it helpful?

Solution

Try the following.

Add the following in Other Linker Flags

-framework <Framework Name>  // avoid extension .Framework, just the name.

In your case it will be

- framework File

Then add appropriate path to your framework in Library Search Paths

example:-

$(PROJECT_DIR)/FOLDER_REFER_TO_FILE.FRAMEWORK

According to your need you can add it for Debug and Release configurations separately. It will work.

I have tried it with Xcode 9.2.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top