x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

macOS default framework search paths not correct.

Note: The standard locations for frameworks are the /System/Library/Frameworks directory and the /Library/Frameworks directory on the local system.

see documentation

UE4 does not search /Library/Frameworks for frameworks, and by definition it should.

Take for example, iTunesLibrary.framework which is an Apple supplied framework in that directory. By all means you should be able to link it w/ *.build.cs with:

     PublicFrameworks.AddRange(
                 new string[]
                 {
                     "iTunesLibrary"
                 }
                 );


and be able to import its headers in objective-c++ files using:

 #import <iTunesLibrary/iTunesLibrary.h>

However neither of these thing are possible, because you get the error during linking:

 ld: framework not found iTunesLibrary

I consider this to be a bug, especially because /System is not writable anymore, so you cannot work around this by adding a framework to /System/Library/Frameworks.

Without trying to overcomplicate this bug report with a question: Is there any way, using *.build.cs, to add a Framework Search Path? When looking around for how to include third party frameworks, most search results are from 2014 and use the word "yet" or "at this time" to talk about how it's not "easy" to do this. It is now 2017 and it's unclear what the solution is.

Product Version: UE 4.17
Tags:
more ▼

asked Aug 14 '17 at 05:46 PM in Bug Reports

avatar image

coupler
1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try this:

  PublicFrameworks.AddRange(
              new string[]
              {
                  "/Library/Frameworks/iTunesLibrary.framework"
              }
              );
more ▼

answered Aug 16 '17 at 08:04 PM

avatar image

ZeroEightSix STAFF
2k 18 6 36

avatar image coupler Aug 17 '17 at 06:44 PM

OK, that works at fixing the linking problem (no more framework not found error). That's one part solved

However, the framework search path is not properly added when building. If you try to include/import a header from the framework using the framework syntax:

 #import <iTunesLibrary/iTunesLibrary.h>

You get the following error:

 CompilerResultsLog: /Users/me/Documents/Unreal/FrameWorksTest/Source/FrameWorksTest/FWTest.mm:11:9: fatal error: 'iTunesLibrary/iTunesLibrary.h' file not found

Compared to importing a system framework which succeeds and builds just fine:

 #import <Foundation/Foundation.h>


avatar image Tim C ♦♦ STAFF Mar 09 '18 at 06:51 PM

Hi coupler,

Sorry for not getting back to you sooner. I was able to reproduce the issue that you have described, and it still seems to be happening in our most recent internal version of the Engine. I have entered UE-56000 to have this investigated further.

Tim

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question