Bug 61273 - duplicate interface definition for class 'CBCentralManager' (G0BB64AFA)
Summary: duplicate interface definition for class 'CBCentralManager' (G0BB64AFA)
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2018-03-26 17:09 UTC by Tusshar
Modified: 2018-03-30 13:06 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Tusshar 2018-03-26 17:09:04 UTC
Below are the details for build log:

Rebuilding...

Cleaning: Sample (Release|iPhone)
Build started 3/26/2018 10:31:48 PM.
__________________________________________________
Project "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/Sample.csproj" (Clean target(s)):

Target CoreClean:
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.exe".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.pdb".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/MagtekDLL.dll".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool/_BundleResourceWithLogicalName.items".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/actool/_PartialAppManifest.items".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/actool/_BundleResourceWithLogicalName.items".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/Sample.csproj.CoreCompileInputs.cache".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/Sample.exe".
    Deleting file "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/Sample.pdb".
Target _CleanAppBundle:
    Removing directory "bin/iPhone/Release/Sample.app/".
Target _CleanDebugSymbols:
    Directory "bin/iPhone/Release/Sample.app.mSYM" doesn't exist. Skipping.
Target _CleanDeviceSpecificOutput:
    Directory "obj/iPhone/Release/device-builds" doesn't exist. Skipping.
    Directory "bin/iPhone/Release/device-builds" doesn't exist. Skipping.
Target _CleanIntermediateToolOutput:
    Removing directory "obj/iPhone/Release/actool".
    Directory "obj/iPhone/Release/assetpacks" doesn't exist. Skipping.
    Directory "obj/iPhone/Release/codesign" doesn't exist. Skipping.
    Removing directory "obj/iPhone/Release/ibtool".
    Removing directory "obj/iPhone/Release/ibtool-link".
    Removing directory "obj/iPhone/Release/ibtool-manifests".
    Directory "obj/iPhone/Release/ipa" doesn't exist. Skipping.
    Directory "obj/iPhone/Release/metal" doesn't exist. Skipping.
    Directory "obj/iPhone/Release/optimized" doesn't exist. Skipping.
    Directory "obj/iPhone/Release/scntool" doesn't exist. Skipping.
    Directory "obj/iPhone/Release/TextureAtlas" doesn't exist. Skipping.
    Removing directory "obj/iPhone/Release/mtouch-cache".
    Removing directory "obj/iPhone/Release/".

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.06

Building: Sample (Release|iPhone)
Build started 3/26/2018 10:31:48 PM.
__________________________________________________
Project "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/Sample.csproj" (Build target(s)):

Target PrepareForBuild:
    Creating directory "obj/iPhone/Release/".
Target _CoreCompileInterfaceDefinitions:
    Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk --compilation-directory /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/LaunchScreen.storyboard
    Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk --compilation-directory /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/Main.storyboard
    Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk --link /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool/LaunchScreen.storyboardc /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool/Main.storyboardc
      BundleResources Output:
        obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
        obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/Info.plist
        obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
        obj/iPhone/Release/ibtool-link/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib
        obj/iPhone/Release/ibtool-link/Main.storyboardc/Info.plist
        obj/iPhone/Release/ibtool-link/Main.storyboardc/UIViewController-BYZ-38-t0r.nib
      OutputManifests Output:
        obj/iPhone/Release/ibtool-manifests/LaunchScreen.storyboardc
        obj/iPhone/Release/ibtool-manifests/Main.storyboardc
        obj/iPhone/Release/ibtool-manifests/link
Target _BeforeCoreCompileImageAssets:
    Directory "obj/iPhone/Release/actool" doesn't exist. Skipping.
Target _CoreCompileImageAssets:
    Tool /Applications/Xcode.app/Contents/Developer/usr/bin/actool execution started with arguments: --errors --warnings --notices --output-format xml1 --output-partial-info-plist /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/actool/partial-info.plist --app-icon AppIcon --compress-pngs --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --compile /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/actool/bundle /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/actool/cloned-assets/Assets.xcassets
Target _CoreCompileColladaAssets:
  Skipping target "_CoreCompileColladaAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
  Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
  Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCoreCompileSceneKitAssets:
  Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs.
Target _CoreCompileSceneKitAssets:
  Skipping target "_CoreCompileSceneKitAssets" because it has no inputs.
Target _BeforeCompileTextureAtlases:
  Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _BeforeCompileTextureAtlases:
  Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _BeforeCompileTextureAtlases:
  Skipping target "_BeforeCompileTextureAtlases" because it has no inputs.
Target _CoreCompileTextureAtlases:
  Skipping target "_CoreCompileTextureAtlases" because it has no inputs.
Target _CoreOptimizePngImages:
  Skipping target "_CoreOptimizePngImages" because it has no outputs.
Target _CoreOptimizePropertyLists:
  Skipping target "_CoreOptimizePropertyLists" because it has no inputs.
Target _CoreOptimizeLocalizationFiles:
  Skipping target "_CoreOptimizeLocalizationFiles" because it has no inputs.
Target GenerateTargetFrameworkMonikerAttribute:
  Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Target CoreCompile:
    /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/4.5/csc.exe /noconfig /nowarn:2008 /nostdlib+ /errorreport:prompt /warn:4 /define:__IOS__;__MOBILE__;__UNIFIED__ /errorendlocation /preferreduilang:en-US /reference:/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/MagtekDLL/MagtekDLL.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /debug:pdbonly /optimize+ /out:obj/iPhone/Release/Sample.exe /target:exe /utf8output Main.cs AppDelegate.cs MagTekDemoViewController.cs MagTekDemoViewController.designer.cs "/var/folders/gg/rvvd1jj17t52z43w7z7hjpj80000gn/T/Xamarin.iOS,Version=v1.0.AssemblyAttributes.cs"
    AppDelegate.cs(36,17,36,26): warning CS0162: Unreachable code detected
Done building target "CoreCompile" in project "Sample.csproj".
Target _CopyFilesMarkedCopyLocal:
    Copying file from "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/MagtekDLL/MagtekDLL.dll" to "bin/iPhone/Release/MagtekDLL.dll".
    Creating "/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/Sample.csproj.CopyComplete" because "AlwaysCreate" was specified.
Target CopyFilesToOutputDirectory:
    Copying file from "obj/iPhone/Release/Sample.exe" to "bin/iPhone/Release/Sample.exe".
    Sample -> /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.exe
    Copying file from "obj/iPhone/Release/Sample.pdb" to "bin/iPhone/Release/Sample.pdb".
Target _DetectSigningIdentity:
    Detected signing identity:
      Code Signing Key: "iPhone Developer: spencer.chung@fitcareusa.com (A82VNGW5A4)" (BB9E6F94760A48385F6A7CB2738A5BC9E6E34A04)
      Provisioning Profile: "iOS Team Provisioning Profile: *" (d6840398-5891-4e4e-ac00-81529261102d)
      Bundle Id: com.PSNAMC.Sample
      App Id: TFH9HS2P99.com.PSNAMC.Sample
Target _CopyResourcesToBundle:
    Creating directory '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/LaunchScreen.storyboardc'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/Info.plist' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/LaunchScreen.storyboardc/Info.plist'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib'
    Creating directory '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/Main.storyboardc'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC.nib'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/Main.storyboardc/Info.plist' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/Main.storyboardc/Info.plist'
    Copying file from '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/ibtool-link/Main.storyboardc/UIViewController-BYZ-38-t0r.nib' to '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app/Main.storyboardc/UIViewController-BYZ-38-t0r.nib'
Target _DetectDebugNetworkConfiguration:
      DebugIPAddresses: 
Target _CompileAppManifest:
    Directory "bin/iPhone/Release/Sample.app.dSYM" doesn't exist. Skipping.
Target _ParseExtraMtouchArgs:
      NoSymbolStrip Output: False
      NoDSymUtil Output: false
Target _CompileToNative:
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --cache /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache --dev /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.app --executable Sample --linksdkonly --sdkroot /Applications/Xcode.app/Contents/Developer --sdk 11.2 --targetver 8.0 --aot-options=-O=float32 --http-message-handler=HttpClientHandler --abi=arm64 --symbollist /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-symbols.list --dsym=no -v -v -v -v -r /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/MagtekDLL/MagtekDLL.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/MagtekDLL/MagtekDLL.dll --target-framework Xamarin.iOS,v1.0 /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/bin/iPhone/Release/Sample.exe 
    Mono Ahead of Time compiler - compiling assembly /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/Build/Xamarin.iOS.dll
    AOTID 4A20DC12-84E8-5073-1A86-13A99823E462
    Code: 389220(83%) Info: 12101(2%) Ex Info: 15947(3%) Unwind Info: 4576(0%) Class Info: 17035(3%) PLT: 1093(0%) GOT Info: 18434(3%) Offsets: 11299(2%) GOT: 17336
    Compiled: 2405/2405 (100%), No GOT slots: 890 (37%), Direct calls: 1830 (73%)
    Output file: '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/arm64/Xamarin.iOS.dll.s'.
    Linking symbol: '_mono_aot_module_Xamarin_iOS_info'.
    JIT time: 386 ms, Generation time: 221 ms, Assembly+Link time: 0 ms.
    
    Mono Ahead of Time compiler - compiling assembly /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/Build/MagtekDLL.dll
    AOTID 62E08147-0285-98E5-4B27-D7B39E271C9F
    Code: 9580(75%) Info: 424(3%) Ex Info: 455(3%) Unwind Info: 402(3%) Class Info: 678(5%) PLT: 55(0%) GOT Info: 699(5%) Offsets: 453(3%) GOT: 752
    Compiled: 96/96 (100%), No GOT slots: 8 (8%), Direct calls: 10 (16%)
    Output file: '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/arm64/MagtekDLL.dll.s'.
    Linking symbol: '_mono_aot_module_MagtekDLL_info'.
    JIT time: 9 ms, Generation time: 8 ms, Assembly+Link time: 0 ms.
    
    Mono Ahead of Time compiler - compiling assembly /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/Build/Sample.exe
    AOTID 34F2D9A5-2D06-2101-2B1C-34E271F7C80A
    Code: 7364(76%) Info: 242(2%) Ex Info: 124(1%) Unwind Info: 158(1%) Class Info: 429(4%) PLT: 78(0%) GOT Info: 962(10%) Offsets: 317(3%) GOT: 1368
    Compiled: 41/41 (100%), No GOT slots: 30 (73%), Direct calls: 2 (28%)
    Output file: '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/arm64/Sample.exe.s'.
    Linking symbol: '_mono_aot_module_Sample_info'.
    JIT time: 9 ms, Generation time: 11 ms, Assembly+Link time: 2 ms.
    
    Mono Ahead of Time compiler - compiling assembly /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/Build/mscorlib.dll
    AOTID 8AE8FB29-D825-A95D-5B9B-3C7D03C19385
    Code: 1173136(83%) Info: 27662(1%) Ex Info: 61893(4%) Unwind Info: 8171(0%) Class Info: 15950(1%) PLT: 3517(0%) GOT Info: 97091(6%) Offsets: 25241(1%) GOT: 48056
    Compiled: 5743/5743 (100%), No GOT slots: 3808 (66%), Direct calls: 9946 (120%)
    Output file: '/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/arm64/mscorlib.dll.s'.
    Linking symbol: '_mono_aot_module_mscorlib_info'.
    JIT time: 689 ms, Generation time: 868 ms, Assembly+Link time: 69 ms.
    
    Process exited with code 1, command:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -Wno-receiver-forward-class -Wno-unguarded-availability-new -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/11.6.1.4/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/arm64/registrar.o -x objective-c++ /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.m
    In file included from /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.m:2:
    /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.h(111,1): error G0BB64AFA: duplicate interface definition for class 'CBCentralManager'
    @interface CBCentralManager : NSObject {
    ^ 
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h:54:28: note: previous definition is here
    CB_EXTERN_CLASS @interface CBCentralManager : CBManager
                               ^ 
    In file included from /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.m:2:
    /Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.h(128,11): warning GD811092D: duplicate protocol definition of 'CBCentralManagerDelegate' is ignored [-Wduplicate-protocol]
    @protocol CBCentralManagerDelegate
              ^ 
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h:200:11: note: previous definition is here
    @protocol CBCentralManagerDelegate <NSObject>
              ^ 
    1 warning and 1 error generated.
    
    MTOUCH : error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
      at Xamarin.Bundler.CompileRegistrarTask.CompilationFailed (System.Int32 exitCode) [0x00001] in /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/tools/mtouch/BuildTasks.mtouch.cs:172 
      at Xamarin.Bundler.CompileTask+<ExecuteAsync>d__28.MoveNext () [0x00092] in /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/tools/mtouch/BuildTasks.mtouch.cs:504 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
      at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
      at Xamarin.Bundler.BuildTask+<Execute>d__22.MoveNext () [0x00368] in /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/tools/common/BuildTasks.cs:258 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
      at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
      at Xamarin.Bundler.BuildTask+<Execute>d__22.MoveNext () [0x00368] in /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/tools/common/BuildTasks.cs:258 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
      at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
      at Xamarin.Bundler.BuildTasks+<>c__DisplayClass4_0+<<ExecuteBuildTasks>b__0>d.MoveNext () [0x0002e] in /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/tools/common/BuildTasks.cs:49 
Done building target "_CompileToNative" in project "Sample.csproj" -- FAILED.

Done building project "Sample.csproj" -- FAILED.

Build FAILED.

AppDelegate.cs(36,17,36,26): warning CS0162: Unreachable code detected
/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.h(128,11): warning GD811092D: duplicate protocol definition of 'CBCentralManagerDelegate' is ignored [-Wduplicate-protocol]
/Users/chetumac-mini/Desktop/ShashankProject/Tusshar/MagtekDLL/Sample/obj/iPhone/Release/mtouch-cache/registrar.h(111,1): error G0BB64AFA: duplicate interface definition for class 'CBCentralManager'
MTOUCH : error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
    2 Warning(s)
    2 Error(s)

Time Elapsed 00:00:21.20

---------------------- Done ----------------------

Build: 2 errors, 2 warnings



Please help me to resolve it. I am facing this from long time.
Let me know if you guys want to know anything about this issue or Bug.
Comment 1 John Miller [MSFT] 2018-03-30 13:06:22 UTC
Hi Tusshar,

Thanks for your feedback on this issue too! Please file new issues on our GitHub repository here: https://github.com/xamarin/xamarin-macios/issues

Please also review our wiki for the type of information we'll need to help with this issue: https://github.com/xamarin/xamarin-macios/wiki/Submitting-Bugs-&-Suggestions

For long build logs, please attach them as a text file too. 

Thank you!