Re: LInker errors where there were none before

Roland King

what I usually do to debug these things is pull the link line from the detailed build log, go to the same directory, run it by hand and ensure I see the same result.

Then I start hunting along the command line to ensure the AudioToolbox is really being linked and where it's coming from, then go and check the package to make sure it contains the symbols I need.

You might want (by hand) to also try then shuffling AudioToolbox later in the link line to see if you have a link order issue (CCToneGenerator linked after AudioToolbox). if you can get it going by hand, then go back to Xcode and see what you can do to make it generate a working link line.

On 25/10/2017 08:34, Graham Cox wrote:

All looks OK.

I’m going to try Xcode 9, just in case (grasping at straws perhaps). I did upgrade Xcode and the OS separately, but this particular project wasn’t recompiled until now.


On 25 Oct 2017, at 10:45 am, Alex Zavatone <zav@...> wrote:

It sounds like the one of a few things might help.

Look in your "link to binaries” build section to see if any binaries are added twice, or are missing.

Also, check to see in the build file phases that you’re not adding the .m file twice under Compile Sources. 

I’ve seen Xcode return an error like this, but really, it was that there were two attempts to build the file with the same methods and it said that it couldn’t link, not that the same file was included twice in the compile process.

I’d check that before attempting to reinstall Xcode 8.3.3.

Join { to automatically receive all group messages.