出现An App ID with Identifier 'com.XXX.XXX’ is not available. Please enter a different string.

解决方法:

1.移除钥匙串中的开发证书,重新导入, 完全关闭Xcode;

2.再次打开Xcode,通过 Preferences - View Details - download 新的证书;

3.选择正确的appID,运行项目。

github: https://github.com/ios-study 简书地址:https://www.jianshu.com/u/9d0a57d9905c
原文地址:https://www.cnblogs.com/xuhuizhan520/p/5442891.html