苹果会发一封这样的信息给你
Dear developer,
We have discovered one or more issues with your recent delivery for "xxxxxx". To process your delivery, the following issues must be corrected:
Invalid Bundle - A nested bundle contains simulator platform listed in CFBundleSupportedPlatforms Info.plist key.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
这种问题基本都是添加第三方库导致的,xcode左下角搜索info.plist会搜索出来boundle的info.plist文件
![](https://img.haomeiwen.com/i6348284/08fc488f4509ca39.jpg)
然后我查看了这个CFBundleSupportedPlatforms这个值得key是iPhoneOS,并没有任何问题,可是打包依旧出错。
最后找到一个在终端输入的命令:可以查看这个文字在工程的哪些地方出现
![](https://img.haomeiwen.com/i6348284/fbb575a0646137e3.jpg)
grep -r "CFBundleSupportedPlatforms" /YourProjectPathHere
打开对应的几个framework修改info.plist文件中的CFBundleSupportedPlatforms就OK了,原因就是第三方生成framework没有把info.plist文件删掉。
网友评论