xamarin build on macos 10.12.6

softlionsoftlion FRBeta ✭✭✭

Hi,
since i upgraded my buid server to macos 10.12.6, xamarin fails to build my iOS app (through VS2015).

I tryed to clean /rebuild / restart VS. Nothing works.
I use the stable Xamarin channel. Should i upgrade to the beta channel ?

1>  clang: error: linker command failed with exit code 1 (use -v to see invocation) (TaskId:104)
1>   (TaskId:104)
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSAppDelegateForwarder. The symbol '_OBJC_CLASS_$_MSAppDelegateForwarder' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSChannelConfiguration. The symbol '_OBJC_CLASS_$_MSChannelConfiguration' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSHttpSender. The symbol '_OBJC_CLASS_$_MSHttpSender' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSKeychainUtil. The symbol '_OBJC_CLASS_$_MSKeychainUtil' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSLogger. The symbol '_OBJC_CLASS_$_MSLogger' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSMobileCenter. The symbol '_OBJC_CLASS_$_MSMobileCenter' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSSenderUtil. The symbol '_OBJC_CLASS_$_MSSenderUtil' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSServiceAbstract. The symbol '_OBJC_CLASS_$_MSServiceAbstract' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSUserDefaults. The symbol '_OBJC_CLASS_$_MSUserDefaults' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MSUtility. The symbol '_OBJC_CLASS_$_MSUtility' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined Objective-C class: MS_Reachability. The symbol '_OBJC_CLASS_$_MS_Reachability' could not be found in any of the libraries or frameworks linked with your application.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined symbol: _OBJC_METACLASS_$_MSHttpSender. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed, undefined symbol: _OBJC_METACLASS_$_MSServiceAbstract. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed. Please review the build log and the user flags provided to gcc: -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ime/Library/Caches/Xamarin/mtbs/builds/TestApp.Ios/266eb8f1049a1f816b293cf93ae94c4b/obj/iPhoneSimulator/Debug/Entitlements.xcent
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Native linking failed. Please review the build log.

Answers

  • softlionsoftlion FRBeta ✭✭✭

    Don't mind.

    This is caused by the MobileCenterDistribute nuget.

    Undefined symbols for architecture x86_64:
          "_OBJC_CLASS_$_MSAppDelegateForwarder", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
              l_OBJC_$_CATEGORY_MSAppDelegateForwarder_$_MSDistribute in MobileCenterDistribute.a(MSDistributeAppDelegate.o)
          "_OBJC_CLASS_$_MSChannelConfiguration", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
          "_OBJC_CLASS_$_MSHttpSender", referenced from:
              _OBJC_CLASS_$_MSDistributeSender in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_CLASS_$_MSKeychainUtil", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
          "_OBJC_CLASS_$_MSLogger", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistributeUtil.o)
              objc-class-ref in MobileCenterDistribute.a(MSBasicMachOParser.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_CLASS_$_MSMobileCenter", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_CLASS_$_MSSenderUtil", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_CLASS_$_MSServiceAbstract", referenced from:
              _OBJC_CLASS_$_MSDistribute in MobileCenterDistribute.a(MSDistribute.o)
          "_OBJC_CLASS_$_MSUserDefaults", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
          "_OBJC_CLASS_$_MSUtility", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistributeUtil.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
          "_OBJC_CLASS_$_MS_Reachability", referenced from:
              objc-class-ref in MobileCenterDistribute.a(MSDistribute.o)
              objc-class-ref in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_METACLASS_$_MSHttpSender", referenced from:
              _OBJC_METACLASS_$_MSDistributeSender in MobileCenterDistribute.a(MSDistributeSender.o)
          "_OBJC_METACLASS_$_MSServiceAbstract", referenced from:
              _OBJC_METACLASS_$_MSDistribute in MobileCenterDistribute.a(MSDistribute.o)
        ld: symbol(s) not found for architecture x86_64
        clang : error : linker command failed with exit code 1 (use -v to see invocation)
    
  • DFoulkDFoulk USMember ✭✭✭

    Did you (by chance) get Mobile Center's API working on iOS? I'm running into this issue and I would really like to use Mobile Center to distribute our IPAs...

  • YanzhiYanzhi CNMember

    Same error occurred here. :(

  • YanzhiYanzhi CNMember

    Same error occurred here. :(

  • GuillaumePerrotGuillaumePerrot USMember ✭✭
    edited September 2017

    Hi, Xamarin and Mobile Center are different products. For official support we don't monitor the forums so this post went unnoticed until someone linked it from our official support center (Intercom from the portal button).

    We are investigating this issue with @Yanzhi and will give an update here after.

    Please use the feedback button from portal for any other issue with Mobile Center.
    Github issues work too when it's only in a specific SDK like this one.

  • TommyBaggettTommyBaggett USUniversity ✭✭✭

    @GuillaumePerrot can you provide a link to the ticket for this issue if one exists? I just ran into this problem and would like to track its progress. Thanks!

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai
Sign In or Register to comment.