一、bundle上架AppStore失败解决办法
报错:
Asset validation failed (90535)
Unexpected CFBundleExecutable Key. The bundle at 'xxx' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue.
是因为Info.plist中存在Executable file,删掉即可。
二、创建Bundle
方式一:
创建文件夹TestBundle,并改名为TestBundle.bundle。然后再把资源文件放入该Bundle就可以了。
方式二:
使用此方式的目的:可通过Xcode管理资源文件,且可多Target管理。
1.创建Bundle

2.设置Base SDK
在Build Settings中修改Base SDK为iOS

3.设置Versioning System
在Build Settings中修改Versioning System为None
此处需要特别注意,一定要确认,如果设置不对,会导致Bundle中包含了可执行文件,会导致上架AppStore被拒。

4.设置Installation Directory
在Build Settings中删除Installation Directory后面对应的路径。

5.设置Code Signing Identity
在Build Settings中删除Code Signing Identity后面对应的路径。(先选择Other,再删除即可)

6.设置iOS Deployment Target
在Build Settings中设置iOS Deployment Target为iOS9.0
一般情况下设置为最小的即可。

7.设置Skip Install
在Build Settings中设置Skip Install为NO

8.设置COMBINE_HIDPI_IMAGES
在Build Settings中设置COMBINE_HIDPI_IMAGES为NO

9.删除Executable file
在Info.plist中删除Executable file

10.确认Bundle OS Type code
确认生成的Bundle的Info.plist,Bundle OS Type code值是否为BNDL,如不是,手动修改为BNDL

