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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.