Unexpected CFBundleExecutable Key – can’t find the right CFBundleExecutable in plist.info to delete

Like many others, I’m experiencing a Unexpected CFBundleExecutable Key error when trying to upload my app to TestFlight via Xcode. Unfortunately, I’ve tried many of the things suggested so far, and haven’t found a solution.

As is, I can build my project locally, but as soon as I Project –> Archive and build my app there, and I click Distribute, I get the following errors:

Unexpected CFBundleExecutable Key. The bundle at 'Payload/wanderly.app/Frameworks/Lottie.framework/LottiePrivacyInfo.bundle' 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.

If I delete Lottie from my project, I still get a similar issue:

Unexpected CFBundleExecutable Key. The bundle at 'Payload/wanderly.app/Frameworks/React.framework/AccessibilityResources.bundle' 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.

Which is weird, since many of the reports of this error are about libraries, but this is related to core React/ReactNative (this is a ReactNative app).

I’ve tried a variety of different things so far:

  1. Completely cleaning my project (delete pods, node_modules, etc) + Clean Build Folder, and no dice.

  2. As some solutions have mentioned, I’ve also looked at Copy Bundle Resources, and there’s no erroneous files. I’ve also set ENABLE_BITCODE to NO.

No weird additions to Copy Bundle Resources

  1. As most solutions have mentioned, I’ve tried going to the info.plist for each package to try to remove the CFBundleExecutable key, but have been unable to find reference to the mentioned executable OR it doesn’t seem to work if I remove it. This is perhaps the most ambiguous / challenging aspect, since there are many places where the .plist can be found, and other answers don’t seem to connect the dots enough for me.

3a) If I do a Cmd + Shift + O for info.plist in Xcode, I get a list of files, but none of them exactly match the bundles listed in my errors.

if I search for info.plist in XCode

info.plist for one lottie entry

info.plist for the other one

You’ll also notice that these all have the Bundle OS Type Code already set to BNDL, and there’s not mention of the CFBundleExecutable key / Executable Name.

3b) I’ve also looked directly into the created “Archive”, for an archive, I right click to “Show in Finder”, and then right clicked on the .xcarchive to “Show Package Contents” –> dSYMs –> Lottie.framework.dSYM –> “Show Package Contents” –> Contents –> Info.plist, and that doesn’t contain anything like what I’m looking for:

directly looking into the contents of a built archive

3c) I’ve also looked into Pods directly in XCode, and looked at related Targets. In the settings it’ll show a “Info.plist File” location like /project_root/ios/Pods/Target Support Files/lottie-ios/ResourceBundle-LottiePrivacyInfo-lottie-ios-Info.plist. Openning that file doesn’t show a CFBundleExecutable / Executable Name key:

looking for info.plist under Target Support Files

3d) I’ve also tried searching my project under Pods for mentions of CFBundleExecutable, and got the following output:

MacBook-Pro-2 ios % grep -r "CFBundleExecutable" Pods/**/*.plist

Pods/Target Support Files/Pods-wanderly-wanderlyTests/Pods-wanderly-wanderlyTests-Info.plist:  <key>CFBundleExecutable</key>
Pods/Target Support Files/Pods-wanderly/Pods-wanderly-Info.plist:  <key>CFBundleExecutable</key>
Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/Versions/0/Resources/Info.plist: <key>CFBundleExecutable</key>
Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/Info.plist:  <key>CFBundleExecutable</key>
Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/Versions/0/Resources/Info.plist:  <key>CFBundleExecutable</key>
Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-simulator/hermes.framework/Info.plist: <key>CFBundleExecutable</key>

which doesn’t mention any of the named bundles mentioned in the error.

3e) I’ve also looked up wanderly.app in Finder. If I right click and got to “Show Package Contents”, I get to a directory where I actually see the packages in the error. If I open the info.plist for each, I actually see the keys and the issue where it includes CFBundleExecutable key and the CFBundlePackageType, and I can delete / edit these files (delete CFBundleExectable and adding BNDL). But when I change them, nothing changes… I think because this directory is related to my locally running build, not the archive that I’m trying to upload.

the info.plists in wanderly.app Show Package Contents

the right keys to be deleting

I’m the most optimistic about this last strategy, but I’m missing the link to how to get these changes to be part of what build I’m trying to upload to TestFlight.

Can anyone help me connect the dots here? I’d really appreciate it.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật