question

JeffWhattam-6305 avatar image
0 Votes"
JeffWhattam-6305 asked KyleWang-MSFT edited

Xamarin.Forms iOS can no longer run after I added MTAdMob on Windows machine

I included MTAdMob in my xamarin.forms app. Both Android and iOS versions ran without any issue on Mac. But when I ran iOS on my Windows machine, it failed with a number of errors. The errors are listed below:

  1. linker command failed with exit code 1 (use -v to see invocation)

  2. warning: directory not found for option '-F/Users/myapp/Library/Caches/Xamarin/mtbs/builds/Mobile.iOS/358fefeedaa418a54b8b65337eedd9ba32d7deb63551b1a1d6caaa5a45ad0f43/C:/Users/UserAcct/AppData/Local/XamarinBuildDownloadCache/GAppM-6.9.0/Frameworks'

  3. framework not found GoogleAppMeasurement

  4. Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz -ObjC -lz -lsqlite3

  5. error MT1008: Failed to launch the simulator: Could not find file "/Users/myapp/Library/Caches/Xamarin/mtbs/builds/Mobile.iOS/358fefeedaa418a54b8b65337eedd9ba32d7deb63551b1a1d6caaa5a45ad0f43/bin/iPhoneSimulator/Debug/Mobile.iOS.app/Mobile.iOS"


I followed a number of instructions that were used for similar issues, but none worked. I did a clean, removed iOS folder's obj and bin, and then rebuilt. I also included Xamarin.Google.iOS.MobileAds as suggested by the author of MTAdMob, and it didn't work either.

Any suggestions on how to solve this issue is greatly appreciated.











dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KyleWang-MSFT avatar image
0 Votes"
KyleWang-MSFT answered KyleWang-MSFT edited

Hi JeffWhattam-6305,

Welcome to our Microsoft Q&A platform!

You can try the following steps to handle it.

1.First, check the version of VS you are using and update it to the latest release.

2.Clear the Xamarin folder under Cache.

3.Then update Xcode to the latest release.

4.Uninstall&reinstall the Xamarin.iOS on your Mac. When you connect Mac in VS, it will prompt whether to install the matching Xamarin.iOS.

If issue isn't resolved, you can submit an issue on Github.

Regards,
Kyle


If the response is helpful, please click "Accept Answer" and upvote it.

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.