I\'m trying to build an extension project and Xcode keeps throwing the error in subject.
In my case, this error occurred when I changed App bundle identifier. I also have WatchKit App in my project.
To fix this, update the WatchKit Extension and WatchKit App bundle Id prefix with the new bundle id of your app. Check info.plist in both targets.
Also update the following -
Update the following with the new Watch App bundle id. WatchKit Extension > Info.plist - NSExtension->NSExtensionAttributes->WKAppBundleIdentifier
Update the following with the new app id. WatchKit App > Info.plist - WKCompanionAppBundleIdentifier
After changing all the values don't forget to Clean product once.