Open Closed

Cannot compile mobile app for iOS #10517


0
Romka created

v10.4 (Abp 6.4.0) Xamarin 16.10 Mono 6.12

Dear team,

we are not able to compile our app when targeting iOS.

The error we are facing is :

MTOUCH : error MT2102: Error processing the method 'System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__6`1::MoveNext()' in the assembly 'Abp.dll': Value cannot be null.

We tried to downgrade abp version one by one major point, and it starts working with abp v5.x. We tried with disabling linker, with no luck.

It's a critical issue to us.

I can forward you by mail the whole build log and further info, if needed.

Thanks


11 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @Romka

    Do you have VS 2022 installed ? One of our customer faced a similar problem and it was caused by VS 2022. If not, could you send logs to info@aspnetzero.com ?

    Thanks,

  • 0
    Romka created

    Hello,

    no, we use VS 2019.

    I sent you an email with related info.

  • 0
    Romka created

    Hi team,

    any clue on this ?

  • 0
    ismcagdas created
    Support Team

    Hi @Romka

    Sorry for the delay, could you check if you have disabled the interceptors as shown below in the ApplicationBootstrapper under Mobile.Shared project ?

  • 0
    Romka created

    Hello,

    yes, we have exactly the same code as in your screenshot.

  • 0
    ismcagdas created
    Support Team

    Hi,

    In that case, this interceptor shouldn't be working at all. I will check it again and inform you in a short time.

  • 0
    Romka created

    Ok,

    thanks !

  • 0
    ismcagdas created
    Support Team

    Hi @Romka

    Could you try this and see if it works for you https://github.com/aspnetzero/aspnet-zero-core/pull/4024 ?

    Thanks,

  • 0
    Romka created

    Hello,

    yes it works.

    But it's kind of a quick-fix, we hope a further version will alow us to compile with linker enabled, to reduce the application output size.

    Anyways thanks for support, we are now able to release our iOS version.

  • 0
    ismcagdas created
    Support Team

    Hi @Romka,

    Could you try liek below and see if it reduces the app size ?

    <MtouchExtraArgs>--interpreter=Abp</MtouchExtraArgs>
    
  • 0
    Romka created

    Hello,

    I reopen this case.

    This seemed to work, but in fact it does not compile for iPad.

    The big problem is that Apple does not allow your app on their store if it does not compile both for iPhone and iPad.

    They provided us with the following logged error ; they say we have to enable the linker to make it pass... but we needed to disable it to compile, as you told us.

    ermination Description: DYLD, dyld: Using shared cache: AA0BA00A-2D1F-398B-AD04-8DB1F276337C | dependent dylib '/System/Library/Frameworks/SensorKit.framework/SensorKit' not found for '/private/var/containers/Bundle/Application/{appId}/{appProjName}.Mobile.iOS', tried but didn't find: '/System/Library/Frameworks/SensorKit.framework/SensorKit'