This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique.
If your application bundle identifier is com.companyName.productName then your extension bundle identifier should be com.companyName.productName.extensionName
If you assign the bundle identifier in this way then your provisioning profile will work for both.