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

fix(ios): exclude all frameworks from optimizing files step #10905

Merged
merged 5 commits into from Jul 9, 2019

Conversation

janvennemann
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-27097

Optional Description:
If a framework contains .png or .plist files our build will try to optimize those. Xcode will update code signing on the first build but fails to do so on subsequent builds. Frameworks should be left untouched to avoid this issue.

@janvennemann janvennemann added this to the 8.1.0 milestone May 22, 2019
@@ -6495,7 +6495,7 @@ iOSBuilder.prototype.optimizeFiles = function optimizeFiles(next) {
}
}
});
}(this.xcodeAppDir, /^(PlugIns|Watch|TitaniumKit\.framework)$/i));
}(this.xcodeAppDir, /^(PlugIns|Watch|\.framework)$/i));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean /^(PlugIns|Watch|.+\.framework)$/i?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah sure, didn't notice the ^ at the beginning of the regex.

@@ -579,7 +579,7 @@ class FrameworkIntegrator {
isa: 'PBXBuildFile',
fileRef: fileRefUuid,
fileRef_comment: frameworkPackageName,
settings: { ATTRIBUTES: [ 'CodeSignOnCopy' ] }
settings: { ATTRIBUTES: [ 'CodeSignOnCopy', 'RemoveHeadersOnCopy' ] }
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe Xcode would automatically add RemoveHeadersOnCopy when you opened the generated Xcode project. I tested explicitly adding it as you've done, but as I recall it wasn't necessary, so I ripped it out. I'm fine with you adding it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just tested this pull - it works fine without this setting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just added it for consistency because that's the attributes we use when adding TitaniumKit as well.

@build
Copy link
Contributor

build commented May 22, 2019

Warnings
⚠️

Commit e736e2e932c1868103e695e3ad1c80e838eb4f0d has a message "use proper regex" giving 2 errors:

  • subject may not be empty
  • type may not be empty
⚠️

iphone/cli/hooks/frameworks.js#L60 - iphone/cli/hooks/frameworks.js line 60 – Avoid calling back inside of a promise. (promise/no-callback-in-promise)

⚠️

iphone/cli/hooks/frameworks.js#L60 - iphone/cli/hooks/frameworks.js line 60 – Expected catch() or return (promise/catch-or-return)

⚠️

iphone/cli/hooks/frameworks.js#L425 - iphone/cli/hooks/frameworks.js line 425 – Each then() should return a value or throw (promise/always-return)

Messages
📖

💾 Here's the generated SDK zipfile.

📖

✅ All tests are passing
Nice one! All 3701 tests are passing.
(There are 470 tests skipped)

📖

🚨 This PR has one or more commits with warnings/errors for commit messages not matching our configuration. You may want to squash merge this PR and edit the message to match our conventions, or ask the original developer to modify their history.

Generated by 🚫 dangerJS against ecffbdf

@sgtcoolguy sgtcoolguy modified the milestones: 8.1.0, 8.2.0 Jun 3, 2019
@janvennemann
Copy link
Contributor Author

@cb1kenobi ping! Can you give this another look? Thanks!

@janvennemann janvennemann changed the title fix: exclude all frameworks from optimizing files step fix(ios): exclude all frameworks from optimizing files step Jun 26, 2019
@ssekhri
Copy link

ssekhri commented Jul 9, 2019

FR Passed. The project with a framework having png/plist files builds successfully each time.
Mac OS 10.14.3
Ti SDK: 8.2.0.v20190709154013
Appc CLI: 7.0.12
Node: 10.13.0
Xcode: 10.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants