The problem “Code signing is required for product type ‘Application’ in SDK ‘iOS 12.2’ is seen when you are working on XCode.
Given below is the snippet of the issue:
Signing for "target" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 12.2'

The problem, “Code signing is required for product type ‘Application’ in SDK ‘iOS 12.2′” is seen because you are using XCode without assigning a team in your XCode. You will have to add a developer account to XCode in your system.
To fix the problem, add developer account to your XCode application. Go to ‘Accounts’ tab, enable ‘Team Development’ option and enable automatic provision profile using ‘Automatically Manage Signing’ option and error would be fixed.
Steps to Fix the problem Code signing is required for product type ‘Application’ in SDK ‘iOS 12.2’:
Step 1: Add your Apple id in your XCode application.
Go to ‘Preferences’, then ‘accounts’ and then add ‘apple id’ as shown below in image as a reference:

Step 2: Activate registering for your previously formed team by selecting ‘Automatically Manage Signing’ Option.

Step 3: Change your bundle identifier with required information.

Step 4: Use code signing to iOS developer, see the image below as a reference:

Step 5: Final step is to set your provision profile to automatic.

This should help you fix and understand the problem, “Code signing is required for product type ‘Application’ in SDK ‘iOS 12.2′”.
Conclusion
You will need to add a developer account to your XCode application in order to resolve the error “Code signing is needed for product type ‘Application’ in SDK ‘iOS 12.2′”.
You need to allow team development under the Accounts tab. An automated provision profile must be used. I hope this article helps you solve and better understand the error.