the making of “I AM RICH”

This is an exercise from the bootcamp I’m taking, huge thanks and credit to Angela Yu all the steps should be pretty straightforward but it never is the same when you do it on your own…

I encountered several interesting challenges, some I was able to resolve, some not yet.

I couldn’t design the proper layout for horizontal view without going back to vertical only to find out everything had been messed up since I moved the elements, I watched a few toturials about Swift rotation layout, there was only one video that has the process of designing both layout for vertical and horizontal, but he was able to do toggle rotation and changed layout, then toggled back, vertical stayed where it was…so this seems intuitive to me that it should just by default lock position? That tutorial didn’t seem to have any step in between just to lock the position. So this issue maintains a mystery still…

There was also a bug when I tried to run it on the physical device, although this was resolved by simply adding a setting, error below:

Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.

This error message indicates that Xcode is having trouble initializing the logging system for your project. This could lead to missing log messages, making it difficult to debug your app. Here's how to fix it:

Solution:

  1. Open your Xcode project.

  2. Click on your project name in the top left corner of the navigator.

  3. Select "Schemes" from the dropdown menu.

  4. Click on the scheme you're currently using (usually named "YourAppName").

  5. Open the "Edit Scheme" menu by clicking the "Edit Scheme..." button next to the scheme name (or right-click and select "Edit Scheme").

  6. In the left sidebar of the Edit Scheme window, navigate to "Run"

  7. Under "Run" in the main window, look for the "Environment Variables" section.

  8. Click the "+" button to add a new environment variable.

  9. In the "Name" field, enter IDEPreferLogStreaming.

  10. In the "Value" field, enter YES.

  11. Click "Close" on the Edit Scheme window.

What it does:

Setting IDEPreferLogStreaming to YES tells Xcode to use a streaming logging system, which can improve the performance and reliability of logging messages.

After you've made these changes, try running your app again. You should no longer see the "Logging Error" message, and your log messages should be displayed correctly in the Xcode console.

When it comes to choosing your matching iPhone version to run the app on, I realized the dropdown list does not include my phone…I still don’t know how the get the bottom option to add my phone (13 pro) so that I could visually see a LIVE display while I design it, that’s very sad, sadness below: (the only 13 is a mini)

But I did figure out how to add it on the top menu where you select which version to run the app on, you do need to do a side step before it will appear that, go to “windows“ on the top menu, open “Devices & Simulators“, see below:

Once that’s done, you will see it appear here:

As far as design goes, something I learned that’s pretty neat is, you can use https://colorhunt.co/ to find any pre-designed color palette you desire, then hover your mouse over and click on the hex number to copy it:

Then simply go back to Xcode to paste it right here!!! How awesome is this!!!!

For appicon design, first thing first, create a resolution of 1024x1024 on https://www.canva.com/ , then if you just want to use the resource included for free, manipulating the color, size, shape and rotation could transform simple elements into something sexy!!

Once you download PNG file from canva, you can use this image as your main photo to make the stack of various appicons automatically by using https://www.appicon.co/ ,

Notice that this folder name is identical of what you see in Xcode, so you could simply drag and drop to replace it, then suddenly, magic happens!! This is highly satisfying if you have OCD like me, all the slots are automatically filled organized with the size of image it’s supposed to SWIFTly!!

Hope what I’m sharing is helpful. If you have solution for the issues mentioned above, please feel free to DM on my IG with your thoughts. Have fun making sexy apps!!!

Previous
Previous

Deep into the git matrix….