Skip to content

Issue: error compiling app (while using SocketMobile.Capture) targeting iOS with maui in .NET9.0 #9

@rporto

Description

@rporto

Your Socket Mobile Developer ID

79A57E81-F63B-460D-960A-EEEEB744B801

Environment

Visual Studio Professional 2022, using a Maui Application project targetting Android and iOS.
SocketMobile.Capture nuget version 2.0.19.509
Device is iPhone 16 Pro connected to a Mac (the Mac is paired to the Visual Studio machine)

Description

When compiling with the iphone connected to the Mac (which is paired to the visual studio laptop), i get a compilation error with this message:

File 'obj/Debug/net9.0-ios/ios-arm64/linker-cache/CaptureSDK.framework/CaptureSDK' is not a valid framework: Unable to read beyond the end of the stream.

Steps to Reproduce

  1. add nuget to project
  2. connect iphone to mac
  3. rebuild using visual studio
  4. error shows ate the end of compilation

Expected Behavior

When compiling with an android tablet, the compilation works and the app runs in android and i can scan without issues.

Compiling for a connected iphone should just work like android.

Actual Behavior

compilation error:

File 'obj/Debug/net9.0-ios/ios-arm64/linker-cache/CaptureSDK.framework/CaptureSDK' is not a valid framework: Unable to read beyond the end of the stream.

Additional Context

I followed some suggestions from ChatGpt, Copilot and Gemini. No luck.
Deleted project temporary folders in visual studio (obj and bin); deleted temporary folders in the mac; disconnected, forgot, and paired with mac again; removed linking from the compilation process (just in case).
Nothing worked.

Every single time i compile and get the error i can see the folder "../obj/Debug/net9.0-ios/ios-arm64/linker-cache/CaptureSDK.framework/" with all files showing 0 kb size, which is obviously wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions