Unexpected CFBundleExecutable key

为君一笑 提交于 2019-11-26 17:11:58

I encountered the same problem today with the same exact error message when trying to submit our app (using Xcode 7 beta 5) but instead of the instabug.bundle bit, it was for me TencentOpenApi_IOS_Bundle.bundle.

I solved the problem by finding the named bundle in the project then - just as the error message suggests - edited the Info.plist that is in the bundle by removing the CFBundleExecutable key. The CFBundlePackageType key was already set to BNDL so I didn't touch it.

After these changes I did Product > Clean and then had no problem submitting the app to the App store.

I hope this helps.

Encountered this with AviarySDK on Xcode 7 GM, while submitting to the App Store.

First I'd check to see whether you're on the latest version of your library - the vendor may have fixed this already. If you are still facing this problem however, as Sleiman describes you need to remove the CFBundleExecutable key from the plist file for the offending library.

Cmd + Shift + O and type "Info.plist", you can then find the appropriate file:

Once editing the plist, you may be seeing descriptive names (instead of the CFBundleExecutable and other keys. I couldn't edit this file in an external editor, so I had to switch to view raw keys/values by right-clicking on the list:

You can now see the CFBundleExecutable key (which has a description of "Executable file") which you can delete.

For AviarySDK I did this twice, once for each Info.plist seen in the above image, and was then able to successfully submit.

I solve this problem as follows: We have to remove all the "Executable files" of the following packages:

  • GooglePlus.bundle
  • GPPCommonSharedResources.bundle
  • GPPShareboxSharedResources.bundle

Be sure that "Bundle type code" is equal BNDL

Important: Do not edit anything in the info.plist the main project.

Attached screens as they should be his "info.plist" listed above each package.

Here's what worked for me

  1. Apple-Shift-F, search for CFBundleExecutable
  2. Click each one except "PODS" or your main target
  3. Delete it (delete key)

If the build is submitted through Less than(<) Xcode 7.0 then it will be submitted and also I have solved it by following way for Xcode 7:

Searched for info.plist in the projects Project Navigator as like following image:

Now opened these info.plist files one by one and deleted the BundleExecutable key EXCEPT the target's info.plist

Now cleaned the project and achieved and It is submitted with No issue.

I had the same issue in Google Maps Library i removed CFBundleExecutable key inside GMSCoreResources.bundle (Info.plist) which is SDK's info.plist clean project and upload to appstore.

Happy Programming.

Just check your Build Settings => Enable Bitcode, and set it NO

One additional note: sometimes if you have additional targets there will be target properties that may also include the key (in the "Info" section), so make sure to check those and remove it from there also. I discovered this with one of the bundles I was trying to include. I deleted the info from the plist, but kept getting the error.

If you're seeing this error from a library installed via CocoaPods, try a pod update <OFFENDING POD NAME>

That solved the problem for me.

Oleksiy Dudarev

I just added word "BNDL" to appropriate place in plist "Bundle creator OS Type code".

In my case I just Drag and Drop The SDK In folder include info.plist file which is not in use. That's create the issue for me. So find the unused info.plist file and delete it from the Source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!