In my case, I created an unsigned IPA file , and for this I made some changes to the SDKSetting.plist file (changed CODE_SIGNING_REQUIRED = NO), and it should always be YES if you run the application on the device.
To resolve this issue, follow these steps: Steps to create an unsigned IPA (tested on Xcode 9.4.1)
Step 1: Open Search> Go to Folder .. as shown below on the screen

and then copy and paste the following line:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.*.sdk/SDKSettings.plist
Open iPhoneOS.sdk as shown in the image below: 
Step 2: Copy the SDKSettings list to another folder, because you cannot make changes here:
Step 3. Make changes in duplicate
set CODE_SIGNING_REQUIRED to YES 
Step 4: Now replace the duplicate Plist with the original one (both names should be the same). This will also ask the administrator for permission to change.
********************************OR**************** * **********************
If you upgrade your Xcode, the problem will also disappear, because the updated Xcode will ship with SDKSetting.plist by default.
Alok
source share