Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

#if __IOS__ seems not working

$
0
0

I used this code in my app, but when it was running, it didn't print the text(both in simulator and my device).

#if __IOS__
            System.Diagnostics.Debug.WriteLine ("I'm in iOS");
#endif

The Define Symbols of my project is DEBUG;MOBILE;IOS;.

The same issue occurs in all the solution I created.
I found that the run menu is different between my solution and MobileCRM, just as the following images shows:

  • My solution: image
  • MobileCRM: image

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>