Framework开发提交审核的注意事项

    为了便于进行模块化开发,项目中将某一些部分使用Framework进行开发后再在主程序中进行调用,虽然能够跑通,但开发阶段中没有细究、文件结构比较随意。可是到了提交苹果App Store审核时,却碰到了如下错误:

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxx.app/Frameworks/xxx.framework/xxx' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."

以上的xxx就是自己写的framework,经过研究后发现对于Framework还应该有如下注意事项:

  1. Framework中使用的资源,如图片、strings、storyboard等都需要放在一个bundle中来使用。

  2. 在主程序中对使用的framework还应进行如图中的配置,选择 Do not embed。

 

于是又忙活着改了两天,改过后再提交,验证通过!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值