Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected CFBundleExecutable key

After spending some time googling, something tells me that the issue is new.

We had a fully functional project supporting iOS7-8. Of course it was multiple times successfully submitted to AppStore.

We use pods, lots of tracking and monitoring, like GA and Instabug.

Now we decided to submit a version of the app built on Xcode 7 on iOS 9 to TestFlight.

We disabled bitcode, since many pods, like Flurry and other prebuilt libraries does not include it.

The build was successful, after the submission to iTunesConnect we get this: enter image description here

We had same for GoogleAppIndexing library (in pods too), but we removed it, just to make it work. Now - Instabug. It is going too far, so I am trying to understand what is going on in iOS 9 and what are the changes that made a fully working project to start throwing such errors.

Any thoughts and ideas are welcomed! Please share your experience, and if I missed something, I will gladly share my steps.

like image 974
Dumoko Avatar asked Aug 19 '15 12:08

Dumoko


3 Answers

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.

like image 118
Sleiman Avatar answered Nov 01 '22 18:11

Sleiman


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:

enter image description here

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:

enter image description here

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.

like image 52
Adam S Avatar answered Nov 01 '22 18:11

Adam S


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.

enter image description here

enter image description here

enter image description here

like image 11
Jonathan Nolasco Barrientos Avatar answered Nov 01 '22 19:11

Jonathan Nolasco Barrientos