yonaskolb / yonaskolb/XcodeGen

How can we fix "Invalid Bundle Structure" error when submitting to app store

Open
#1,105 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

Hi, We have our project.yml file configuration as below:

dependencies:
- sdk: libABC.a
link: true

When we submit the build to app store, it gives us the following error:

Invalid Bund Structure - The binary file libABC.a is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide for information.
What kind of changes should we make in project.yml to fix this?
We found a similar issue on stackoverflow, just not sure what are the exact changes needed.
https://stackoverflow.com/questions/20251252/invalid-bundle-structure-the-app-may-contain-only-one-executable-file#:~:text=This%20error%20occurs%20when%20a,Copy%20Bundle%20Resources%20build%20phase.
Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the project.yml dependencies entry and inspect the generated Xcode project and build phases to determine why libABC.a is included in the app bundle. Compare the generated bundle with the referenced Bundle Programming Guide, then verify the corrected configuration by rebuilding and submitting to the App Store without the Invalid Bundle Structure error.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.