based on your log:
Code Signing Error: Provisioning profile "XC: *" is Xcode managed, but signing settings require a manually managed profile.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'
It seems in your project you set Manual code singing, but you uploaded an Xcode managed profile (which is for app-store exports).
For successful archive you would need to upload the code sign files you set in your project and also for ipa export you would need a manual provisioning profile (if use manual profile for archive you only can use manual profile for ipa export).