<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Md Ibrahim Hassan</title>
    <description>The latest articles on DEV Community by Md Ibrahim Hassan (@ibrahimhass).</description>
    <link>https://dev.to/ibrahimhass</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F140605%2Fc93069a3-faea-4bb5-b8a6-b97aeb57b8e6.jpeg</url>
      <title>DEV Community: Md Ibrahim Hassan</title>
      <link>https://dev.to/ibrahimhass</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibrahimhass"/>
    <language>en</language>
    <item>
      <title>Compile Xcode Project with Google Maps dependency for simulator on M1 macs</title>
      <dc:creator>Md Ibrahim Hassan</dc:creator>
      <pubDate>Wed, 08 Nov 2023 06:55:44 +0000</pubDate>
      <link>https://dev.to/ibrahimhass/build-xcode-project-with-google-maps-dependency-on-m1-macs-with-xcode-15-without-rosetta-42c7</link>
      <guid>https://dev.to/ibrahimhass/build-xcode-project-with-google-maps-dependency-on-m1-macs-with-xcode-15-without-rosetta-42c7</guid>
      <description>&lt;p&gt;I was trying to build a project with GoogleMaps 6.2.1 added via Cocoapods on an M1 Pro MacBook Pro. GoogleMaps still needs to adopt the new &lt;code&gt;xcframework&lt;/code&gt; with &lt;a href=""&gt;support for arm64 for the simulator&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;In earlier versions of Xcode, we could run Xcode via Rosetta and Google Maps used to compile.&lt;br&gt;
In the recent versions of Xcode, the option to run it via Rosetta is not present.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7sIjloeP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jok9dw0soeaha1mfu88z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7sIjloeP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jok9dw0soeaha1mfu88z.png" alt="Xcode Rosetta support comparision" width="800" height="719"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  So how do we get around this?
&lt;/h2&gt;

&lt;p&gt;Apple hasn't stopped supporting Rosetta (yet). They have, in fact made it more manageable. Instead of making the Xcode run using Rosetta, in Xcode 15, we can select destination architecture per project within Xcode. &lt;/p&gt;

&lt;p&gt;Here is how we use a Rosetta simulator for a Xcode Project.&lt;br&gt;
If you want to run the project in the simulator under Rosetta, try this:**&lt;br&gt;
Xcode -&amp;gt; Product (in the menu bar) -&amp;gt; Destination -&amp;gt; Destination Architectures -&amp;gt; check 'Show Rosetta Destination'**.&lt;br&gt;
After that, all devices in the build list should be able to have '(Rosetta)' in the end.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DIRuqqSe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://sarunw.com/images/open-using-rosetta-in-xcode-14-3-menu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DIRuqqSe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://sarunw.com/images/open-using-rosetta-in-xcode-14-3-menu.png" alt="Open Destination with Rosetta" width="800" height="773"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TXGAhjKk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://sarunw.com/images/open-using-rosetta-in-xcode-14-3-rosetta-destinations.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TXGAhjKk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://sarunw.com/images/open-using-rosetta-in-xcode-14-3-rosetta-destinations.png" alt="Rosetta supported simulator destinations" width="800" height="591"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;References:&lt;br&gt;
&lt;a href="https://sarunw.com/posts/open-using-rosetta-in-xcode-14-3/"&gt;https://sarunw.com/posts/open-using-rosetta-in-xcode-14-3/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://developer.apple.com/forums/thread/736886?answerId=769030022#769030022"&gt;https://developer.apple.com/forums/thread/736886?answerId=769030022#769030022&lt;/a&gt;&lt;/p&gt;

</description>
      <category>swift</category>
      <category>xcode</category>
      <category>rosetta</category>
      <category>apple</category>
    </item>
    <item>
      <title>How to force Light / Dark Mode in iOS?</title>
      <dc:creator>Md Ibrahim Hassan</dc:creator>
      <pubDate>Sun, 29 Oct 2023 18:01:01 +0000</pubDate>
      <link>https://dev.to/ibrahimhass/how-to-force-light-dark-mode-in-ios-jkn</link>
      <guid>https://dev.to/ibrahimhass/how-to-force-light-dark-mode-in-ios-jkn</guid>
      <description>&lt;p&gt;Starting in iOS 13, Apple made a systemwide Dark Mode option available. There are cases when we might want to force only the light mode user interface. This can be done by adding the following entry to the Info.plist of the app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;key&amp;gt;UIUserInterfaceStyle&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;Light&amp;lt;/string&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similarly to force dark mode user interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;key&amp;gt;UIUserInterfaceStyle&amp;lt;/key&amp;gt;
&amp;lt;string&amp;gt;Dark&amp;lt;/string&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://developer.apple.com/documentation/bundleresources/information_property_list/uiuserinterfacestyle"&gt;UIUserInterfaceStyle&lt;/a&gt; has the following possible values:&lt;br&gt;
1) Automatic (default value if we do not add &lt;code&gt;UIUserInterfaceStyle&lt;/code&gt; key explicitly)&lt;br&gt;
2) Light (forces light mode user interface)&lt;br&gt;
3) Dark (forces dark mode user interface)&lt;/p&gt;

&lt;p&gt;I hope this short post is helpful.&lt;br&gt;
Happy coding :)&lt;/p&gt;

</description>
      <category>ios</category>
      <category>swift</category>
      <category>howto</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
