Forum Xamarin.Forms

Unable to Publish iOS app. Reference error?

RicardoSRicardoS ESMember ✭✭✭

We were able to generate the apk file for Android, but iOS is giving us trouble.

The error reads:

Could not resolve this reference. Could not locate the assembly "ExifLib". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

ExifLib, as you may guess, does not exist indeed. But we don't need it and there are no references to it nowhere. So, we cannot progress.

If you need any info we might have oversight, please inform us.

Thank you for your time.

ManuelR

Best Answers

  • RicardoSRicardoS ES ✭✭✭
    edited March 9 Accepted Answer

    Ok, no errors on simulator. Apparently I deleted the package that was causing problems and maybe forgot to install it?

    I don't know, gonna try to gen the IPA file now.

    Bollocks, I didn't want to accept this as an answer!!

  • RicardoSRicardoS ES ✭✭✭
    Accepted Answer

    ...and the IPA is ready to go. I guess the project just needed a bit of a clean up?

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai
    edited March 9

    Did your project or its references want to use ExifLib?

    ExifLib, as you may guess, does not exist indeed.

    Maybe the libraries in your project need to use it but you delete it from the reference. Could the project deploy successfully on the simulators in debug mode?

  • RicardoSRicardoS ESMember ✭✭✭
    edited March 9

    @LandLu said:
    Did your project or its references want to use ExifLib?

    Nope, we never needed it. I've searched for any use of this package, but to no avail.

    Maybe the libraries in your project need to use it but you delete it from the reference. Could the project deploy successfully on the simulators in debug mode?

    Debugging is not a problem. And the simulator responds as expected.

    We tried adding ExifLib, but then the project warned us about needing Xlabs packages, so I guess the issue goes deeper?

  • RicardoSRicardoS ESMember ✭✭✭
    edited March 9

    Ok, now we cannot debug on simulator, for some reason...

    Error:

    Error MT2001: Could not link assemblies. Reason: Error while processing references of 'Conductores.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' (MT2001) (Conductores.iOS)

    where 'Conductores' is the project name

  • LandLuLandLu Member, Xamarin Team Xamurai

    It means your project lacks references to some libraries which are needed.
    Try to remove all the extra references and add them again.
    Do not forget to clean and rebuild your project after that.

  • RicardoSRicardoS ESMember ✭✭✭

    @LandLu said:
    It means your project lacks references to some libraries which are needed.

    Great, now we need to know which are those.

    Try to remove all the extra references and add them again.
    Do not forget to clean and rebuild your project after that.

    Do you mean all the references?

  • LandLuLandLu Member, Xamarin Team Xamurai

    Can't detect which library references it from your exception. So we have to check your references one by one.

  • RicardoSRicardoS ESMember ✭✭✭

    I screwed big time.
    I unmarked all assemblies in the References part and now they are all gone.

    Now I have to uninstall all packages one by one and reinstall them.

    Hooray for me!

  • RicardoSRicardoS ESMember ✭✭✭
    edited March 9 Accepted Answer

    Ok, no errors on simulator. Apparently I deleted the package that was causing problems and maybe forgot to install it?

    I don't know, gonna try to gen the IPA file now.

    Bollocks, I didn't want to accept this as an answer!!

  • RicardoSRicardoS ESMember ✭✭✭
    Accepted Answer

    ...and the IPA is ready to go. I guess the project just needed a bit of a clean up?

Sign In or Register to comment.