Skip to content

Added strip shell script to xCode project in the post build process#1

Open
borntocompile wants to merge 2 commits into
masterfrom
automate_build_framework
Open

Added strip shell script to xCode project in the post build process#1
borntocompile wants to merge 2 commits into
masterfrom
automate_build_framework

Conversation

@borntocompile

Copy link
Copy Markdown

Added the manual step for striping the unnecessary simulator architectures to the post build process. This allows for automated build pipelines such as Unity Cloud Services, but also reduces the steps require through manual builds too.

Before these changes, Unity Cloud build will fail with:

error: exportArchive: IPA processing failed
Error Domain=IDEFoundationErrorDomain Code=1 "IPA processing failed" UserInfo={NSLocalizedDescription=IPA processing failed}

After these changes, Unity Cloud build will succeed with:

Running script 'Build Frameworks'
publishing finished successfully.

// Add linker flags
proj.AddBuildProperty(projectTarget, "OTHER_LDFLAGS", "-ObjC");

#if UNITY_2018_3_OR_NEWER

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HarryHodgson What is being executed here that's Unity 2018.3 specific? Is it the calls to PBXProject?

In any case, can you add a comment to show why the directive is here.

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.

2 participants