How to use/bind the ExternalAccessroy for ios in .net MAUI targeting 9.0

Rahul Shreebastav 25 Reputation points
2025-02-10T06:17:26.5033333+00:00

Hello team,

When I am trying to create an ipa file in release mode in IOS from Visual Studio 2022 I am getting the below errors when I am keeping <MtouchLink>SdkOnly</MtouchLink>
I am not finding any articles/documentation on how to use it. Can you please guide me on how to use and solve the below errors?

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-ios|AnyCPU'">

	<CreatePackage>false</CreatePackage>

	<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>

	<CodesignProvision>Release_Provisioning_Profile</CodesignProvision>

	<CodesignKey>iPhone Distribution</CodesignKey>

	<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>

	<MtouchLink>SdkOnly</MtouchLink>

	<UseInterpreter>true</UseInterpreter>

	<MtouchUseLlvm>true</MtouchUseLlvm>

	<ProvisioningType>manual</ProvisioningType>

</PropertyGroup>
```**Errors**

clang++ exited with code 1:

Undefined symbols for architecture arm64:

  "_EAAccessoryDidConnectNotification", referenced from:

```r
  -[mot_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[mot_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[dcsbt_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)

  -[dcsbt_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)
```  "_EAAccessoryDidDisconnectNotification", referenced from:

```r
  -[mot_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[mot_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[dcsbt_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)

  -[dcsbt_MFiConnectivityMgr setEnabled:] in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)
```  "_EAAccessoryKey", referenced from:

```r
  -[mot_IOMFiDevice disconnect] in libintegratedsdk.a[arm64][20](IOMFiDevice.o)

  -[mot_IOMFiDevice stream:handleEvent:] in libintegratedsdk.a[arm64][20](IOMFiDevice.o)

  -[mot_MFiConnectivityMgr accessoryHasConnected:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  ___58-[mot_MFiConnectivityMgr accessoryHasConnectedWorkaround:]_block_invoke in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[mot_MFiConnectivityMgr accessoryHasDisconnected:] in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)

  -[dcsbt_MFiConnectivityMgr accessoryHasConnected:] in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)

  ___60-[dcsbt_MFiConnectivityMgr accessoryHasConnectedWorkaround:]_block_invoke in libintegratedsdk.a[arm64][105](DcsMFiConnectivityMgr.o)

  ...
```  "_OBJC_CLASS_$_EAAccessoryManager", referenced from:

```sql
   in libintegratedsdk.a[arm64][21](MFiConnectivityMgr.o)
```  "_OBJC_CLASS_$_EASession", referenced from:

```sql
   in libintegratedsdk.a[arm64][20](IOMFiDevice.o)
```ld: symbol(s) not found for architecture arm64

Update

---

I am using ZebraRFID SDK for ios 'ZebraRfidIntegratedSdk.dll' and Xcode version 16.2 No, I am not getting errors when I am using Don't Link or Link All then it builds success.
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,023 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,246 Reputation points Microsoft External Staff
    2025-02-14T00:56:52.4166667+00:00

    Hello,

    Thanks for clarifying that the problem comes from the SDK itself.

    Error indicates that the method is referenced that does not have an implementation in the arm64 binary (.a file) .

    Since this is a third-party tool and not supported on Q&A, you could contact them for further help.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.