Mac

Failed to instantiate the default view controller ?

One might run into this error when you delete your default View Controller (which has been automatically created by Xcode when you create a project) and create your own View Controller with new settings.

The following is complete error:

2016-02-03 15:31:24.954 VintageStore[8141:1258879] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
Message from debugger: Terminated due to signal 15

This error has a very simple fix:

Select the ViewController Scene. Now, select the inspector panel from the sidebar options. Check the “Is Initial View Controller” attribute option, save the project and build the project again.

Cheers,

SH.

 

Advertisements

Removing Windows from Mac using Boot Camp

Hi,

This is a short post demonstrating the complete removal of windows from Mac which has been installed using Boot Camp native application. Once you remove Windows, the bootcamp automatically restores the space and reverts it to a single OS X partition like before.

Step 1: Open the bootcamp application by navigating to Applications -> Utilities -> Boot Camp Assistant.

Boot Camp Assistant

Step 2:  Click on Continue

Screen 1

Step 3: Check Remove Windows 7 or later version and click Continue

Screen 2

Step 4: If you haven’t backed up your files on Windows partition. Please do it. Because continuing on this step would completely remove all the files on the windows partition and cannot be recovered.

Click Restore to continue the process.

Screen 3

Step 5: Restoration of Partition starts

Screen 4

Step 6: Done. The Windows partition is removed successfully.

Screen 5

You can check the disk size after quitting this application.

Cheers

SZ

How to download and install iOS 8 without deleting any of your data?

If you have tried downloading iOS 8 on your iPhone or iPad which is filled with applications, you might run into a problem. That’s because iOS 8 will prompt you saying that it needs 5 giga bytes of space to download and install the new OS. Though the size of the update is 987MB as shown on iPad and 1.5 GB on iTunes, you have to clear up the space to download and install.

So, how do you make 5 Gigabytes of space? Do you delete all your pictures, videos, or game apps? That is one way to do but I suggest not to do that. Because it’s crazyyy. There is other way around. Just connect your iPad/iPhone to your Mac/PC. Back up your device and then click on “Check for update” button in the iTunes and next when it shows iOS8 is available to download and install. Click on that and you are done.

Happy installing iOS 8 😀

How to launch Sublime Text App from Mac OSX Terminal ?

Hello,

It is quite simple to do this. Just follow the steps.

1. Open the Terminal and run ln -s “/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl ” /usr/local/bin/sublime

This will create a symlink called sublime between the subl binary stashed in Sublime application package and the folder where your system usually looks for binaries to execute(launch).

2. If the above command gives you an error saying   ln: /usr/local/bin/sublime: Permission denied. execute the command again by using sudo

Quick tip here: Just run sudo !!  instead of copying and pasting the entire path again. This will execute the previous command.

3. Now run open ~/.bash_profile and add  /usr/local/bin if you don’t have it in the $PATH.

4. Now execute source ~/.bash_profile if you have made any changes to the file. This command reloads your .bash_profile

5. Now run sublime command in the terminal to launch the application.

or

run sublime . to open an entire directory with the sublime text

or

run sublime folder name or file name to open a specific folder or file

 

Cheers,

SZ

 

 

How to add “Open in Sublime Text” service to any folder or a file on Mac – Shell Script

Hello everyone,

I have been using the sublime text lately. I am amazed with several jaw dropping features this gorgeous editor provides. I will writing more on sublime text and today  I am going to discuss about “How to add a service ‘Open in Sublime Text‘ as a service using a shell script on the Mac”. Its pretty simple and we will be using the Automator application to do this.

Step 1: Fire up the Automator application which is a native Mac application. Go to “File” menu and click on “New

Step 2: Select the type of the document as “Service” from the menu.

Step 3: In the search bar, type “Shell” it should “Run Shell Script“. Select it and drag it into the adjacent window.

Step 4: You will see a selection with text area. Copy the path of Sublime Text and paste it. The path of the Sublime executable file is:

/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl

Step 5: You can get this path by going to the Sublime Text app and right click on it and choose “Show package contents

Step 6: Now add -n $@ after the path which should look the following :

/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@

Step 7: Select “/bin/zsh” and “as arguments” from the Shell and Pass input drop downs respectively.

Step 8: Now, select “Files and Folders from the drop down menu saying “Service receives selected” and save it as “Open in Sublime Text

Step 9: Close the Automator and go to any folder and right click on it and under Services sub-menu you can see Open in Sublime Text.

I have attached the screen-shots for much more clarity.

S1 S2 S3 S4 S5 S6 S7 S8 S9

 

The End 🙂

Cheers,

SZ

Latex or pdftex command not found in Terminal Mac.

Hello everyone,

I have finally started learning LaTeX today and I am loving it. It is so much fun. On Mac, to run the LaTeX software, you can download the MacTeX distribution from the site which comes with three different packages. You can use the GUI tool to process the LaTeX file. But if you want to use the other editors and would like to run it through the terminal, then we have to do an additional step to make things work from the Terminal.

Adding the texbin to the $PATH variable makes the magic. One has to append the /usr/texbin to the $PATH variable. To do this, open the .bash_profile file and add the above path to the existing $PATH variable and save the file. Run source ~/.bash_profile to make the changes immediately.

Bingo, now you can run the latex or pdftex command in the terminal and process your LaTeX files.

Cheers,

SZ