Re: Not finding libraries
Re: Not finding libraries
- Subject: Re: Not finding libraries
- From: Howard Moon <email@hidden>
- Date: Fri, 06 Jan 2017 15:22:06 -0800
Hi Alex,
In case it helps, here’s what I did, which worked beautifully:
> I created a .xcconfig file for each configuration (but did NOT add them to any target, because they don’t need to be copied into the product itself).
> I created a line like this in each file:
OTHER_LD_FLAGS = “some path/build/Debug/lib1.a” “some path/build/Debuglib2.a"
> Under the Project Settings / Info, selected the file appropraite file for each configuration (for example, “DebugConfig.xcconfig” for “Debug” configuration).
> Then I went to first the Project Settings and then the Target settings, and deleted the overrides I had for the entries in both Library Search Paths, and Other Linker Flags. (I did this by selecting the setting and hitting Delete.) This replaced the Other Linker Flags in the Target settings with the line I had entered into the .xcconfig file.
So now, Xcode no longer touches the strings for the libraries I am linking to, and they are used in the “ld” command exactly as I wrote them in the config file.
(I have not made any other config file entries, but I probably will, if and when I identify other ones that seem appropriate to keep there. However, my AAX audio plug-in projects have a LOT of entries in them, which were made originally by Digidesign/Avid for use with plug-ins that third parties like us want to create.)
-Howard
> On Jan 6, 2017, at 1:07 PM, Alex Zavatone <email@hidden> wrote:
>
> Bernie and Howard, thanks for bringing this to my attention. I'd love to share notes on this process as it would probably help the group as a whole.
>
> Bernie, what in particular from your project have you moved into these files, where are they within your project and are they shared project-wide? How is what is defined in them propagated to the rest of the workspace/project/subprojects?
>
> Thanks in advance,
> Alex Zavatone
>
> On Dec 29, 2016, at 7:21 PM, Bernie Maier wrote:
>
>> Howard Moon:
>>
>>
>> I haven't tried this for myself, but I think you may avoid some of these problems if you moved these settings into .xcconfig files. You could define your build variables there, correctly quoted to cope with the spaces, and the Xcode UI will not futz with them.
>>
>> Personally, I'm a big fan of .xcconfig files and move as many build settings into them as possible. But to get started you probably only need minimal versions: a debug one and a release one.
>>
>>
>> --Bernie
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden