I'm working with a Qt project on a Mac. I have to add a framework
MessagesUI.Framework
to the XCode list of frameworks each and every time that I open the project or try to archive it. Is there a way to keep it as a required default so I won't have to add it every time?
I've tried changing the search path but that doesn't seem to work, and it is included in the project files that its used in, within Qt.
#import <ContactsUI/ContactsUI.h>
#import <MessageUI/MessageUI.h>
I also have it linked directly within the .pro file - another framework is successfully added that way.
INCLUDEPATH += /...File/Path.../System/Library/Frameworks QMAKE_LFLAGS += - /...File/Path.../System/Library/Frameworks LIBS += -framework ContactsUI LIBS += -framework MessageUI
UPDATE: It appears that MessageUI.framework is missing from the System frameworks, but not from the XCode frameworks. ContactsUI.framework works, no issue there. Looks as though XCode won't allow me to add a framework from the XCode files, only from System files. ContactsUI.framework was also causing a problem prior to adding its address to the .pro file, but IS in System frameworks.
Use Cocoapods for adding frameworks in Xcode project. This is mostly used way for developers. Here is the link how to use it. Click Here