The latest version of the book is P2.0, released over 3 years ago. If you've bought a PDF of the book and would like to update it to this version (for free), visit your home page.
By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:
If you've found a new error, please submit it.
- Reported in: P1.0 (11-Nov-16)
Paper page: 6
I am using Xcode 8.1 and was working on the very first example. I'm assuming this is due to iOS 10.
let url = NSURL(string:
let player = AVPlayer(URL: url!)
Generated the error message “NSURL” is not implicitly convertible to “URL”; did you mean to use “as” to explicitly convert?"
Searching around stackoverflow, I have adjusted the code to use URL rather than NSURL and lowercase url in the AVPlayer . It now appears to work as follows:
let url = URL(string: "xxxx://wwwDOTpublicbroadcastingDOTnet/wgvu/ppr/wgvufm.m3u")
let player = AVPlayer(url: url! )// as URL)
- Reported in: P1.0 (25-Jul-16)
Paper page: 8
When I attempt to execute the code on page 6 with the additions on page 8, I get this error message listed on bottom. I think that this URL is no longer valid. If replaced by something like "... mp3.fr.armitunes.com:8000/listen.pls" (from the webpage), the code works.
2016-07-25 07:57:49.225 MyPlayground[23793:3155663] Failed to obtain sandbox extension for path=/var/folders/6n/6b3n1l7n3q19vkn2m765fc7r0000gn/T/com.apple.dt.Xcode.pg/containers/com.apple.dt.playground.stub.iOS_Simulator.MyPlayground-CA217213-6208-442C-9CA2-74493B1B5F1F/Library/Caches/com.apple.dt.playground.stub.iOS_Simulator.MyPlayground-CA217213-6208-442C-9CA2-74493B1B5F1F. Errno:1
- Reported in: P2.0 (12-Sep-16)
PDF page: 24
Paper page: 25
The digging into Documentation section is based on the IOS 9.0 Documentation which is too far from the curent documentation and does not seem accessible from the Xcode Documentation.--remi seris
- Reported in: P1.0 (24-Jul-16)
Paper page: 95
In the first paragraph, the last sentence is "As of this writing, Twitter's SSH support isn't forward-secrecy compliant." It should be "As of this writing, Twitter's SSL support isn't forward-secrecy compliant."--Charles Plater
- Reported in: P2.0 (14-Aug-16)
PDF page: 193
When the auto layout constraints for the stack view are described, it says to give it a top constraint of 0 to the superview. This causes the top of the stack panel to overlap with the status bar on the phone. This should be 0 to the top layout guide. Note that the sample project sets this correctly (and is how i found out what to set it to).--Andy Schott
- Reported in: P2.0 (31-Aug-16)
Paper page: 318
Within the "Implementing the Next Keyboard Button" section. I believe "KeyboardViewControllerStoryboard.storyboard" should be "PragmaticTweepsKeyboard.storyboard".
Also, what good does an ePub page number get you?--Robert Schwalbe