1

I have created a iOS app using ionic 4 with cordova and I have used following command to build iOS platform.

ionic cordova platform add ios@4.5.1

ionic cordova build ios --prod --release

After that I have open the xcodeworkspace file using Xcode and tested using simulator as well.

But when I trying to upload it to App Store I can't do it because this automatically manage signing doesn't work.

Here is the error Xcode shows.

Xcode Version : 12.1

Xcode automatically manage signing error

I have try following solutions but didn't work them.

  1. Deleting provisioning profiles in ~/Library/MobileDevice/
  2. Restart the Xcode
  3. Adding and removing push notification capabilities as described here iOS - automatic signing is unable to resolve
  4. All the solutions in here as well Xcode - error
  5. The file path is APP > Platforms > ios > Cordova > build-release.xconfig

And in the file, iPhone Distribution is explicitly set for CODE_SIGN_IDENTITY.

Change:

CODE_SIGN_IDENTITY = iPhone Distribution CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution To:

CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer

After all these solution it shows above error.

EDIT I have a doubt with this signing certificate also. Is this normal with individual developer program ?

Signing certificate issue (a doubt)

EDIT 2

Here I have noticed identifiers are automatically created using Xcode. But there is no certificates or profiles. Why is that?

Only identifiers are added

EDIT 3 Manual signing works

After suggestion by

@MostafaHarb

I have add certificates and profiles manually add install them. After that only it allows me to use manual signing.

Manual signing

shehan96
  • 328
  • 1
  • 3
  • 20
  • Did you create a profile for this app, and gave that profipe the right distribution certificate? – Mostafa Harb Nov 01 '20 at 08:25
  • No. I want to create it automatically. – shehan96 Nov 01 '20 at 09:44
  • It sign it automatically, which means it will automatically find the profile package name with project package name, but you nead to create that profile first so that it detects it. – Mostafa Harb Nov 01 '20 at 09:45
  • You mean identifiers? You can see my 2nd image in he question that identifier is creat automatically – shehan96 Nov 01 '20 at 09:47
  • I have trying creating certificates and profiles. But nothing happen. Same error. – shehan96 Nov 01 '20 at 10:18
  • Under identifiers tab, there is profile tab, inside it create your new profile, inside it specify the identifier and the distribution certificate and give it a name like project name – Mostafa Harb Nov 01 '20 at 10:33
  • After you create it, double click on it and it will be imported into your keychain for future use – Mostafa Harb Nov 01 '20 at 10:34
  • I have do all these things @MostafaHarb – shehan96 Nov 01 '20 at 10:40
  • Only thing I can do is manual signing – shehan96 Nov 01 '20 at 10:42
  • What do you mean by it only allow manual signing... do you mean checkbox is disabled or what? – Mostafa Harb Nov 01 '20 at 11:46
  • Checkbox is not disabled. I can enable it. But above error is still appearing. When I disable checkbox and using manual signing. Then it works fine. – shehan96 Nov 01 '20 at 13:13
  • To remove the error on signing, go to keychain , right click on login and put lock keychain and then right click and unlock keychain and test again, if it didn't work, in key chain click file and clear login then in xcode it will create the peofile automaticaly – Mostafa Harb Nov 01 '20 at 13:18
  • Thank you very much for your guidance. But I can't find a place to clear login. It has only delete login – shehan96 Nov 02 '20 at 14:58

0 Answers0