If it’s an app to go to the App Store, no, wildcards won’t do. The app id for a store submission must be an id like com.companyname.appname, and the distribution profile needs to be based on that app id. Likewise, the id Scott mentioned would need to be the full thing, no wildcards.