Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping compile source build phase for bundles #878

Merged

Conversation

nkukushkin
Copy link
Contributor

@nkukushkin nkukushkin commented Jun 4, 2020

Motivation

We’ve added a resource bundle to our app and this caused the following issue when uploading to the ASC:

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'XXX.app/YYYY.bundle/YYYY' 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 at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."

We solved this by removing CFBundleExecutable parameter from the bundle’s Info.plist file (as per default behaviour described in xcodegen docks) and Compile Sources build phase from the its target. However, when we use xcodegen, the Compile Sources build phase comes back, even though it’s empty.

Judging by the source it seems impossible to make xcodegen skip Compile Sources unless the target’s type is hardcoded in canSkipCompileSourcesBuildPhase.

This issue is very similar to #149

Solution

I propose adding bundle to the list of types whose canSkipCompileSourcesBuildPhase property returns true.

@yonaskolb
Copy link
Owner

Great, thanks @nkukushkin! Could you add a changelog entry as well?

@nkukushkin
Copy link
Contributor Author

Done 👌

@yonaskolb yonaskolb merged commit 86c9812 into yonaskolb:master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants