How to trap on UIViewAlertForUnsatisfiableConstraints?

This post helped me A LOT! I added UIViewAlertForUnsatisfiableConstraints symbolic breakpoint with suggested action: Obj-C project po [[UIWindow keyWindow] _autolayoutTrace] Swift project expr -l objc++ -O — [[UIWindow keyWindow] _autolayoutTrace] With this hint, the log became more detailed, and It was easier for me identify which view had the constraint broken. UIWindow:0x7f88a8e4a4a0 | UILayoutContainerView:0x7f88a8f23b70 | … Read more

‘Project Name’ was compiled with optimization – stepping may behave oddly; variables may not be available

If your project is using Swift, there are two separate “Optimization Level” settings in the project/target configuration. Make sure you set them both correctly: Select your project in the Project Navigator pane Select your project’s settings under the “PROJECT” tree Click “Build Settings” tab Search for “Optimization Level” and you’ll see two settings, one for … Read more

Python in Xcode 4+?

I figured it out! The steps make it look like it will take more effort than it actually does. These instructions are for creating a project from scratch. If you have existing Python scripts that you wish to include in this project, you will obviously need to slightly deviate from these instructions. If you find … Read more

“Application windows are expected to have a root view controller at the end of application launch” error when running a project with Xcode 7, iOS 9

From your error message: Application windows are expected to have a root view controller at the end of application launch How old is this “old” project? If it’s more than a few years, do you still have: [window addSubview:viewController.view]; You should instead replace it with: [window setRootViewController:viewController];

What does ENABLE_BITCODE do in xcode 7?

Bitcode refers to to the type of code: “LLVM Bitcode” that is sent to iTunes Connect. This allows Apple to use certain calculations to re-optimize apps further (e.g: possibly downsize executable sizes). If Apple needs to alter your executable then they can do this without a new build being uploaded. This differs from: Slicing which … Read more

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

I have solved it with adding some key in info.plist. The steps I followed are: Opened my Project target’s info.plist file Added a Key called NSAppTransportSecurity as a Dictionary. Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as like following image. Clean the Project and Now Everything is Running fine … Read more