3 Replies
      Latest reply on Sep 22, 2019 9:13 AM by SkillsFactory
      SkillsFactory Level 1 Level 1 (0 points)

        Hello,

        when I try to compile my OS X Apps that work like a charm with XCode 10 I get an error about Automatic Reference Counting with MailCore 2 framework: searching for _objc_loadClassref also if I disabled ARC.

        That's a bit frustrating and I can't find any known issue...

        • Re: Compiling problem after XCode 11 update
          SkillsFactory Level 1 Level 1 (0 points)

          here's the error:

           

          Undefined symbols for architecture x86_64:

            "_objc_loadClassref", referenced from:

                __ARCLite__load() in libarclite_macosx.a(arclite.o)

          ld: symbol(s) not found for architecture x86_64

            • Re: Compiling problem after XCode 11 update
              kurash Level 1 Level 1 (0 points)

              I ran into this same issue, although in my case the app is already not using ARC.  I added the following to the "Other Liinker Flags" setting:

               

                 -Xlinker -U -Xlinker _objc_loadClassref

               

              I'm not sure this is a proper fix, but at least it gets the link to succeed and does not seem to cause any issues during run time.  I'm using this just so I can get some work done, not necessarily as a final fix.  I fear that leaving this in place might break the app on older OSs.

               

              Anyway, maybe this can get you back to a working build, at least until someone from Apple gives you a better answer...