I'm new to ios app development. I've developed an app that loads fine into the xcode 12 simulator, on a simulated iphone 11.
I've now plugged in an iphone 6 device and am trying to run the app on there.
I'm trying the only settings xcode seems to allow me, which is:
Under 'signing and capabilities':
Automatically manage signing
Team - (my name (Personal Team))
Bundle identifier - the app I'm trying to release
Provisioning profile - xcode managed profile
Signing certificate - the certificate I generated by going to the Accounts -> Manage certificates and generating a developer certificate.
Under 'Build settings' under 'signing' I have:
Code signing Identity - iOS developer (I also tried apple development)
Code signing style - automatic
Development team - same team as above
Provisioning profile - automatic
I've been fiddling around with it for about 2 hours now and always getting the same error:
code object is not signed at all
and then finally
Failed with exit code 1
EDIT: Could it be anything to do with ios versions? The iphone 6 is running ios 12.4 and I think I saw somewhere that xcode is using sdk 14.0?
EDIT: I've created a test app and I get the same error. It always seems to be with the swift libraries.