How To Fix Xcode Error Failed To Create Provisioning Profile. There Are No Devices Registered In Your Account On The Developer Website.

When I develop iOS app use Xcode and build my iOS app, I suddenly meet an error which said failed to create provisioning profile. there are no devices registered in your account on the developer website. Plug in and select a device to have XCode register it. This error confused me a lot of times. […]

How To Fix Xcode Error Failed To Create Provisioning Profile. There Are No Devices Registered In Your Account On The Developer Website. Read More »

How To Fix Xcode Error Failed To Find Or Create Execution Context For Description IBCocoaTouchPlatformToolDescription

When i upgrade my Xcode to version 10.3 and build my iOS project, i meet an error message like this Failed to find or create execution context for description ‘<IBCocoaTouchPlatformToolDescription: 0x7fe0cfa54080> System content for IBCocoaTouchFramework-ElevenAndLater <IBScaleFactorDeviceTypeDescription: 0x7fe0cfa63cb0> scaleFactor=2x’. These intermediate objects were non-nil:. This error confused me a lot of time. But finally i find

How To Fix Xcode Error Failed To Find Or Create Execution Context For Description IBCocoaTouchPlatformToolDescription Read More »

How To Fix Warning Attempt To Present UIAlertController On ViewController Whose View Is Not In The Window Hierarchy

I want to implement an effect that when the iOS app starts, it popup an alert dialog on the screen and displays some messages. But during the process, I meet an error message like below, and the alert dialog is not displayed as I want. This article will tell you how to fix this issue.

How To Fix Warning Attempt To Present UIAlertController On ViewController Whose View Is Not In The Window Hierarchy Read More »

How To Fix Xcode Not Automatically Creating Bridging Header File Issue

If you want to import objective-c class’s .h and .m file into the swift project, Xcode will create an Objective-C Bridging Header file in the swift project automatically. But sometimes you will find it does not create the objective-c bridging header file, so you need to create and configure it manually. This article will tell

How To Fix Xcode Not Automatically Creating Bridging Header File Issue Read More »

iOS Swift Function External And Internal Parameter Name Example

When we define a swift function, we can provide function parameters to it, and each function parameter can have an external name and an internal name. External name is used by the caller to pass value to the parameter, internal name is used by the function body to get the parameter value. Below is a

iOS Swift Function External And Internal Parameter Name Example Read More »

How To Add iOS App Icon, Image, Color Set To Xcode Project Assets Catalog Correctly

Xcode project organizes project resource files use Asset Catalog. Each asset catalog can contain multiple asset sets such as app icon set, image set, color set, etc. When you create an Xcode project use one project template such as Single View App, it will create a default asset catalog file Assets.xcassets in the project files

How To Add iOS App Icon, Image, Color Set To Xcode Project Assets Catalog Correctly Read More »

How To Change Swift Constraints To Make Autolayout Programmatically

In the previous article, we have learned how to change swift constraints use the auto-layout toolbar visually ( How To Add Constraints In Xcode 10 To Implement Auto Layout ). In this article, I will show you an example of how to use class UIKit.NSLayoutConstraint, UIKit.NSLayoutAnchor and Visual Format Language to add constraints to the

How To Change Swift Constraints To Make Autolayout Programmatically Read More »

How To Add Constraints In Xcode 10 To Implement Auto Layout

When you develop an iOS app use swift, you can make the UI components fixed size. But iOS devices have different screen sizes, so the fixed size UI components will render differently on different iOS devices. Even when you change the same iOS device’s orientation from portrait to landscape, the fixed size UI design will

How To Add Constraints In Xcode 10 To Implement Auto Layout Read More »