背景:

1. XCode 6.1

2. 证书:develop 证书

3. Scheme 为Device

操作:

在Product - Archive 包过程中,选择Save for Ad hoc Deployment模式【给内部人员测试】,export包时,弹出了如下提示

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

后来在http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/找到了原因和解决方案

具体实施如下:

用xcodebuild 和 xrun工具打包,操作比较简单。

1. 打开terminial, 进入到项目文件(xxxx.xocdoeprj)的目录下

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

 

 

 

 

 

2.  执行xcodebuild clean命令

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

 

 

 

 

 

 

3. 执行如下命令,其中-Target后面的参数,即为:当前项目的Target名字 

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

 

 

 

 

 

 

4. 执行如下命令,完成打包

xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法

 

以上参考:

http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/
http://www.cnblogs.com/bandy/p/4070781.html

相关文章:

  • 2021-07-10
  • 2021-06-02
  • 2021-11-24
  • 2021-04-09
  • 2021-12-07
  • 2021-11-24
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-06-22
  • 2021-09-16
相关资源
相似解决方案