之前从:
下载下来的demo:
com.dcg.ChartsDemo
要给其去打包出ipa
登录apple开发者账号
https://developer.apple.com/account/
切换到个人账号中:
There were errors in the data supplied. Please correct and re-submit. An App ID with Identifier ‘com.dcg.ChartsDemo’ is not available. Please enter a different string. |
所以去换个bundle id
com.danielgindi.ChartsDemo
再去添加一个adhoc的PP文件,用于发布给别人测试安装:
DanielgindiChartsDemo_Distribution_adHoc
Name: DanielgindiChartsDemo_Distribution_adHoc Type: iOS Distribution App ID: 3WRHBBSBW4.com.danielgindi.ChartsDemo Expires: Nov 7, 2016 |
去下载:
然后再去设置PP文件和Code Signing:
然后去解决签名的问题:
[已解决]iOS项目打包失败:CodeSign error: code signing is required for product type Framework in SDK iOS 9.3
[总结]
对于此处的这种特殊的项目:
当前项目A,依赖于另外的项目B
A=ChartsDemo-》对应的项目生成ChartsDemo.app,内部依赖于:
B=Charts->对应的项目是生成Charts.framework
此时,去打包项目A时,除了A要设置好对应的PP文件和Code Signing之外,还要去设置好所依赖的B项目的PP文件和Code Signing,才能正常的打包,而不会出现此处的:
CodeSign error: code signing is required for product type ‘Framework’ in SDK ‘iOS 9.3’
的错误。