Monday, January 8, 2024
HomeiOS Developmentios - Cannot take away NewsstandKit from MAUI venture

ios – Cannot take away NewsstandKit from MAUI venture


I’ve a MAUI venture model: maui-ios 7.0.92/7.0.100, SDK 7.0.400. I’m utilizing xCode v15, macOS Sonoma 14.1.2, and VS for Mac 17.6.7.

I’m making an attempt to construct an ex co-workers venture however I preserve getting this error:

In file included from ~~/cds-tims-mobile-client/obj/Debug/net7.0-ios/ios-arm64/linker-cache/registrar.mm:3:
~~/cds-tims-mobile-client/obj/Debug/net7.0-ios/ios-arm64/linker-cache/registrar.h:32:9: deadly error: 'NewsstandKit/NewsstandKit.h' file not discovered
#import <NewsstandKit/NewsstandKit.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated. (TIMS)

I’ve seen a variety of different questions making an attempt to unravel the identical problem and I do know it’s an incompatibility problem with NewsstandKit and xCode 15. The issue is that even after eradicating all references from the venture each time I attempt to construct the venture references to Newsstand package are created within the registrar.h, registrar.m, and _LinkerFrameworks.gadgets recordsdata which triggers the error.

I’ve seen different questions say so as to add <MtouchExtraArgs>--weak-framework=NewsstandKit.framework/NewsstandKit</MtouchExtraArgs> to the .csproj file however I’ve executed this:

    <PropertyGroup>
        <TargetFrameworks>net7.0-ios;</TargetFrameworks>
        <RuntimeIdentifiers>ios-arm64</RuntimeIdentifiers>
        <MtouchExtraArgs>--weak-framework=NewsstandKit.framework/NewsstandKit</MtouchExtraArgs>
        <TargetFrameworks Situation="$([MSBuild]::IsOSPlatform('home windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
        <!-- Uncomment to additionally construct the tizen app. You will want to put in tizen by following this: https://github.com/Samsung/Tizen.NET -->
        <!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
        <OutputType>Exe</OutputType>
        <RootNamespace>TIMS</RootNamespace>
        <UseMaui>true</UseMaui>
        <SingleProject>true</SingleProject>
        <ImplicitUsings>allow</ImplicitUsings>

But the error persists and the references preserve getting generated.

There are additionally references to NewsstandKit inside Xamarin.iOS.dll.s however there are a ton. I am undecided if I ought to simply delete this file or what.

How can I eliminate this NewsstandKit package deal and make it cease producing within the registrar recordsdata? What’s making this occur? Is NewsstandKit a part of a much bigger package deal I’m utilizing maybe?

When you want any additional data or to see any recordsdata or code please let me know.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments