Why am I seeing this error? "Failed to compile the generated registrar code."

The section with the error in my output is this

3> ILSMobile.iOS -> C:\ILS.MobileApp\ILSMobile\ILSMobile.iOS\bin\iPhone\Debug\ILSMobile.iOS.exe 3> Detected signing identity: 3> Code Signing Key: "iPhone Developer: Stan Farmer (SVW73J3K4A)" (5FBE8ABFFB091226B40060A808F7CF4A51494E28) 3> Provisioning Profile: "DevProfile" (1b65e2b3-c4f7-4504-b472-83530257e0a5) 3> Bundle Id: com.ilsmart.ILSMobile 3> App Id: P9CTCA4N25.com.ilsmart.ILSMobile 3> Process exited with code 1, command: 3> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Wno-receiver-forward-class -Wno-objc-missing-super-calls -Wno-unguarded-availability-new -stdlib=libc++ -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/arm64/registrar.o -x objective-c++ -DDEBUG /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m 3> In file included from /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:3: 3> In file included from /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.h:19: 3> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/Photos.framework/Headers/Photos.h:31: 3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h:17:47: error: expected identifier or '{' 3> typedef NS_ENUM(NSInteger, UIImageOrientation); 3> ^ 3> /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:12096:17: warning: method 'updateSearchResultsForSearchController:' in protocol 'UISearchResultsUpdating' not implemented [-Wprotocol] 3> @implementation UIKit_UISearchController___Xamarin_UISearchResultsUpdating { 3> ^ 3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h:33:1: note: method 'updateSearchResultsForSearchController:' declared here 3> - (void)updateSearchResultsForSearchController:(UISearchController *)searchController; 3> ^ 3> /Users/jbarrientos/Library/Caches/Xamarin/mtbs/builds/ILSMobile.iOS/03074acfdcf196377abbb6532e618958/obj/iPhone/Debug/mtouch-cache/registrar.m:12096:17: warning: method 'updateSearchResultsForSearchController:' in protocol 'UISearchResultsUpdating' not implemented [-Wprotocol] 3> @implementation UIKit_UISearchController___Xamarin_UISearchResultsUpdating { 3> ^ 3> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h:33:1: note: method 'updateSearchResultsForSearchController:' declared here 3> - (void)updateSearchResultsForSearchController:(UISearchController *)searchController; 3> ^ 3> 2 warnings and 1 error generated. 3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com

Best Answer

  • Accepted Answer
    Hey colex thanks for looking into it. Turns out I needed to update xamarin iOS on my MacBook. Then that caused it to not match with my VS 17 application, so I updated to VS 19 and it works fine now! 😁

Answers

  • ColeXColeX Member, Xamarin Team Xamurai
    edited October 11

    Look at this line

    Code Signing Key: "iPhone Developer: Stan Farmer (SVW73J3K4A)" (5FBE8ABFFB091226B40060A808F7CF4A51494E28) 3> Provisioning Profile: "DevProfile" (1b65e2b3-c4f7-4504-b472-83530257e0a5)

    It seems the Provisioning Profile was not set properly , Could you check it again ?

    Refer https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/

  • JimmyBarrientosJimmyBarrientos Member ✭✭
    Accepted Answer
    Hey colex thanks for looking into it. Turns out I needed to update xamarin iOS on my MacBook. Then that caused it to not match with my VS 17 application, so I updated to VS 19 and it works fine now! 😁
  • ColeXColeX Member, Xamarin Team Xamurai

    @JimmyBarrientos said:
    Hey colex thanks for looking into it. Turns out I needed to update xamarin iOS on my MacBook. Then that caused it to not match with my VS 17 application, so I updated to VS 19 and it works fine now! 😁

    Please accept your solution as answer .

  • JimmyBarrientosJimmyBarrientos Member ✭✭

    Sorry, I'm new to this. Thank you anyway!

Sign In or Register to comment.