4 Replies
      Latest reply on Dec 16, 2019 11:53 AM by giantguppy
      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...

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

                Setting my deployment target (minimum) iOS version to 9 (up from 8) alleviates the problem for me.  Even my iPhone 4 supports 9, so this seems reasonable.  I'm using Xcode 11.2.1.