Xcode Profile Is Not An Ios App Store Profile

At least we was able again to ship into app store after we ve created new certificate and provisioning profile.
Xcode profile is not an ios app store profile. Choose product from the top menu and click on archive. Now when i click install on app store for xcode nothing happens. Using xcode you can directly upload the ipa file of the app to app store connect once the code signing step is complete and the app profile is created on the app store connect portal.
How can i get xcode to install properly. For your convenience xcode creates a wildcard app id called ios wildcard app id that matches all your apps. App is already submitted to app store from xcode 9 and now i have to update new version but now xcode is updated i e xcode 10 during validating it shows apps must contain a provisioning profile in a file named embedded mobileprovision app is working fine on simulator.
A device can be added to multiple provisioning profiles. The app is also not visible there and i cannot create the needed. Unfortunately going back to highsierra didn t help then.
The issue began after upgrading to macos mojave. I am a newbie to development on mac or ios. From the top menu go to product archive.
Tried downloading xcode 4 2 from app store. In xcode select generic ios device as the deployment target. It seemed to download but then screen disappeared.
We tried with xcode 10 and even xcode 9 2 on an app that is on the app store since many years. This will open a dialog box displaying all the. Xcode 9 does not accept xcode generated provisioning profile with xc ios in the name.