文件名称:Troubleshooting.Xcode.1484215613
文件大小:1.48MB
文件格式:PDF
更新时间:2018-11-15 04:33:18
Troubleshoot Xcode
Troubleshooting Xcode is a handbook for software developers of all levels creating applications for iOS and OS X using both Objective-C and Swift. If you’ve struggled in the past to make Xcode work as expected, to solve problems that defy logic, and to understand Xcode’s misleading or cryptic error messages and unexpected crashes, Troubleshooting Xcode is for you. Troubleshooting Xcode is great for the developer wanting to extend his or her knowledge about obscure problems and limitations involving the use of Xcode, Objective-C, and Swift as well as how to use automation to increase productivity and make some repetitive tasks easier. What youll learn Learn about some classical bugs and limitations of iOS, OS X, and Xcode and how to solve or avoid them. Know when you should never use Storyboards for your OS X application. Discover several workarounds you can use to bypass some of the hardest problems you may face. Know how to use scripts to automate repetitive tasks like the creation of in- app purchase packages or icons for your application. Understand how you can create images that are better compressed and smaller. Learn how to avoid falling into common pitfalls. Learn how to use C to workaround some Objective-C limitations. Who this book is for iOS and OS X developers who need to troubleshoot problems and limitations with Xcode. Developers with all levels of experience will find helpful information in Troubleshooting Xcode. Table of Contents Chapter 1. Xcode crashing when opening a project file Chapter 2. The identity used to sign the executable is invalid Chapter 3. Xcode fails to compile and blames "SBPartialInfo" Chapter 4. No matching provisioning profiles found Chapter 5. Compressing images better than Photoshop Chapter 6. Creating packages for in-app purchases Chapter 7. Reduce up to 75% of the compiling time Chapter 8. Declaring impossible "constants" in Objective-C Chapter 9. Concurrency with Core Data Chapter 10. Creating icons for your apps from Terminal Chapter 11. UINavigationBar tint not working Chapter 12. Debugging an insanely hard Quartz error Chapter 13. Adding objects to a mutable array concurrently Chapter 14. The app is damaged and can’t be opened Chapter 15. Application failing to obtain a receipt Chapter 16. Classes with the same name on different targets Chapter 17. A case against Base Internationalization Chapter 18. Checking for missing Localizable.strings Chapter 19. You are declaring your NSString wrong Chapter 20. CocoaPods: /Manifest.lock: No such file or directory Chapter 21. Asset Catalogs bug Chapter 22. App crashing without giving you clues Chapter 23. NSUserDefaults not working for a sandboxed app Chapter 24. Interface elements not updating Chapter 25. Find and replace using regex Chapter 26. Extracting a dictionary from an array Chapter 27. Magical way of counting elements on an array Chapter 28. OS X app not launching with the correct size Chapter 29. Detecting the application target Chapter 30. Disabling a method Chapter 31. Deprecating a method Chapter 32. Xcode "beachballs" when opening a project Chapter 33. UIButton not grayed out Chapter 34. Catching memory corruption Chapter 35. SpriteKit crashing on didBeginContact: Chapter 36. SpriteKit object not respecting boundaries Chapter 37. A case against using Storyboards for Cocoa apps Chapter 38. UIView Classes with independent rounded corners Chapter 39. Making NSViews compatible with UIViews Chapter 40. Detect with the UIPickerView stops spinning Chapter 41. "Insane" NSDates Chapter 42. Localizing the application name Chapter 43. Centering views horizontally with Auto Layout Chapter 44. Elements grayed out on Storyboard after copying Chapter 45. Debugging Core Data Chapter 46. "The package does not contain an Info.plist" Chapter 47. Check the version of an app on the App Store Chapter 48. Power tips: Beyond Xcode