When coding in Xcode and using the #ifdef, perhaps from using multiple targets preprocessor macros you might run into this error: Unterminated Conditional Directive This is due to a missing ending. It needs to be balanced with an #endif. Just like the #if statement needs an #endif. So to solve the error the if statement
Tag: Mac
VLC Connect To DLNA Server
In VLC 2.x and up you can access your share DLNA server by opening View -> Playlist. This will open up the playlist view. Go to Local Network -> Universal Plug’n’Play Here you’ll see all your visible shared folders and files. In older VLC versions it’s in a different place: Tools → Preferences → All →
Mac Map Windows Network Drive
To map a windows network drive in Mac open up Finder. Go to the mene Go -> Connect to Server.. or press Cmd + K Enter the path to the network drive: “smb://<servername>/<share> Replace <servername> and <share> It will now try to connect and ask for user account if this is required. Fill in Name
Xcode Rename Scheme Name
To rename a scheme name you can do two things. Go to the menu Product -> Edit Scheme… (Cmd + <) -> Manage Scheme -> Select the Scheme you want to rename. Press return or do a slow double click Now you can rename the scheme name.
Xcode Run Script Permission Denied
Running a script in Xcode while compiling is a great way to have multiple targets with different resource and alike. After adding your script you might run into a permission denied error. You need to add permission to the file. Open up a terminal and navigate to the location of the .sh file. Now use
Xcode Couldn’t Register with the bootstrap server
After trying Xcode Error Provisioning Profile Cannot Be Found After Deleting Expired Profile you might run into yet another problem with Mac where you are not able to install you app. It runs without any problems in simulator but crashs on the iPhone. It compiles without errors but crash and end in a pthread_kill error. Couldn’t register com.company.app
Xcode Create Launcher Image
iPhone app got a launcher image to fool the users to think the app starts very quickly. To create this launch image can be create from the Organizer from Xcode. Open Xcode and go to menu Window -> Organizer or the Organizer icon in the topright corner of Xcode. Remember to connect your iPhone to
Mac Stop The Automatic Dimming Of The Screens Brightness
Mac’s brightness is set to automatically dim and adjust the brightness in different situations. This is however very annoying sometimes when having multiple external screen connected, then the mac screen will dim itself. To remove this unwanted feature go to the System Preferences -> Display. Here untick “Automatically adjust brightness”. Set the brightness level you
Chrome Enabling Translate Option
To enable or disable the toolbar in Chrome to translate a page into, say English, you can do the following. You might have selected never translate anything, but now wants it back. Do the following: Click the wrench icon on the browser toolbar. Select Settings. Click Under the hood In the “Languages” section, use the “Offer to translate
Xcode Can’t Remove SplashScreen
In Xcode after doing a ScreenShot in Organizer and pressing “Save as Launch Image” the image does not appear in the Groups and Files / project files. The file do however exist in the project folder if you navigate to it in Finder. To remove it go to your specific Target and select “Build Phases”