Team set to None unless I select Automatically manage Signing

I have an App that I been using and developing for over 3 years. We updated our provisioning profile that was about to expire, but now Xcode will not let me select our team or the provisioning profile.

I'm using Nativescript which is telling me my App needs a provisioning profile.

error: exportArchive: "WFSL.app" requires a provisioning profile.

When I run ns build ios --release --for-device --provision I get 27 non-eligible provisioning profiles.

When I open the XCworkspace file in Xcode. Team is None. I cannot select my team unless I tick the automatically mamange signing option which I do not want. I have another app updated in the same way and my team is selectable without ticking the automatically manage signing box.

I tried clean, deleting the derived data folder etc but cannot fix the issue.

On my other App I can select my team as expected without having to tick the automatically manage signing.

It looks like you may have a hard-coded provisioning profile in your Build Settings, which the settings in Project Editor is not overriding. Can you check your Build Settings for the target? Under the Signing section, there is a setting for Provisioning Profile. Does this match your manual profile? If you want to manually sign and use a specific profile, change it here, ensuring the profile you choose matches your team and the expiration date. If you want to automatically sign, make sure this setting is "automatic". Let us now if that doesn't help, so we can explore other possibilities.

Team set to None unless I select Automatically manage Signing
 
 
Q