最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]给iOS的Charts库的demo去打包成AdHoc的ipa

iOS crifan 2818浏览 0评论

之前从:

danielgindi/Charts: Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

下载下来的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’

的错误。

转载请注明:在路上 » [记录]给iOS的Charts库的demo去打包成AdHoc的ipa

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.209 seconds, using 22.00MB memory