Skip to content

issue/2871 - Fix the framework copy and codesigining issues#2873

Closed
flovilmart wants to merge 88 commits into
CocoaPods:swiftfrom
flovilmart:issue/2871-nice
Closed

issue/2871 - Fix the framework copy and codesigining issues#2873
flovilmart wants to merge 88 commits into
CocoaPods:swiftfrom
flovilmart:issue/2871-nice

Conversation

@flovilmart

Copy link
Copy Markdown

Forget the other one... that one is cleaner!

kylef and others added 30 commits November 22, 2014 18:01
Never compare that to banana-lib!
Choose a label for the target definition which contains whitespaces.
Embed frameworks with a run script build phase

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you keep the blank lines in the generated script?

@mrackwitz

Copy link
Copy Markdown
Member

Nice that you came up with a solution for both problems! 👍

- Adds back removed blanklines
- declare source and destination as local
- respect code style for if statements
- quoted variables for paths
- Adds exclude *.h files on rsync
- code_sign now requires a full path
@flovilmart

Copy link
Copy Markdown
Author

Not a really big contribution, but a useful one :)

@flovilmart

Copy link
Copy Markdown
Author

The test fails when checking the generated .sh file for an OS X project. where's the template that we match against?

@flovilmart

Copy link
Copy Markdown
Author

It appears to be more exclusions compared to the Xcode current copy framework phase:

The original command is
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks

@ValCapri

Copy link
Copy Markdown

I tested with your latest commit with "Fixes for mrackwitz" in my own fork (which was CocoaPods/swift branch, after that I rebased against master) and it's working. Beta distribution through Fabric.io works.
So thank you.

@mrackwitz

Copy link
Copy Markdown
Member

@flovilmart: The spec to match against is in a separate submodule, which you can rebuild with rake spec:rebuilt_integration_fixtures from the main project.

@flovilmart

Copy link
Copy Markdown
Author

@mrackwitz do you want me to update the spec and PR?

@mrackwitz

Copy link
Copy Markdown
Member

@flovilmart: Do you want to try to incorporate the further exclusion parameters, which you figured out?
(-exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders, where the last both would then be preferably used instead of -exclude '*.h')
If you want, I can then take over and take your changes into the 'swift' branch. So you don't need to rebuild and fork the integration-spec submodule. The changes there have to rebased again anyway, so a merge makes that always a bit more of hassle.

@flovilmart

Copy link
Copy Markdown
Author

@mrackwitz I'll add the additional excludes, and properly test that archived/built FW are still functional.
I'll replace the current -exclude '*.h' with the Xcode proposed ones

@flovilmart

Copy link
Copy Markdown
Author

I've integrated the exclusion patterns with rsync with the --filter param, maybe a bit verbose but that works, it properly skips all specified folders. --exclude requires the file to exist so it can be excluded, which is pretty weird...

@segiddins

Copy link
Copy Markdown
Member

@mrackwitz this was just manually merged, no? In which case, we can close the PR

@mrackwitz

Copy link
Copy Markdown
Member

I rebased now your branch and fast-forwarded it into the rebased swift branch.

@mrackwitz mrackwitz closed this Dec 6, 2014
@flovilmart

Copy link
Copy Markdown
Author

Awesome!

On Fri, Dec 5, 2014 at 7:07 PM, Marius Rackwitz notifications@github.com
wrote:

Closed #2873.

Reply to this email directly or view it on GitHub:
#2873 (comment)

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.

5 participants