Updated site

Hello, just a quick update. This site is under heavy change right now. I’m updating this site right now. Please support me, see Donate.  

Swift: How to flush the output of println on command line interface CLI

Just enable flush print all the time: // — Swift: clear output buffer for print all the time. Why is that not the default? setbuf(__stdoutp, nil);   1. Testing: If you have some print and/or println statementes in your code – these get’s buffered. Example: 1. print(«Enter a name: «) 2. input user value Output: …

Swift: How to flush the output of println on command line interface CLI Weiterlesen »

Swift: How to input a number from CLI Command Line Interface

Is there no input() function in Swift? No. Not for now. But how then can we enter a number or a string from the command line interface (CLI)? 1. Copy this function to your code: func input() -> String {     var keyboard = NSFileHandle.fileHandleWithStandardInput()     var inputData = keyboard.availableData     var strData = NSString(data: …

Swift: How to input a number from CLI Command Line Interface Weiterlesen »

Install OS X v10.11 El Capitan Developer beta on an USB Stick

This is how you can install OS X v10.11 El Capitan Developer beta on an USB stick. NOTE: Install this only on a none-productive machine. Make backups first! 1. Download OS X El Capitan BETA You need to have a developer account. https://developer.apple.com/osx/download/ 2. Insert your USB drive, at least 8 GB 3. Start Terminal …

Install OS X v10.11 El Capitan Developer beta on an USB Stick Weiterlesen »

Swift Compiler Error: swiftc failed with exit code 11

Just writing my first Swift App and got stock on this Swift Compiler Error: «swiftc failed with exit code 11». Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 11 I used Xcode Version 6.3.2 (6D2105) on Yosemite 10.10.3 (14D136). Any idea? Solution: Just restart Xcode, seems to be a Xcode compiler bug.

Warenkorb
rfwbs-sliderfwbs-sliderfwbs-sliderfwbs-slide
Scroll to Top