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

[TIMOB-25402] Fix framework handling regressions #233

Merged
merged 1 commit into from Oct 17, 2017

Conversation

janvennemann
Copy link
Contributor

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

Fixes two framework handling regression preventing a user to pull in additional system frameworks via appc.js and accidently overwriting the whole FRAMEWORK_SEARCH_PATH build setting.

Fixes two framework handling regression preventing a user to pull in additional system frameworks via appc.js and accidently overwriting the whole FRAMEWORK_SEARCH_PATH build setting.
@@ -858,6 +858,60 @@ HyperloopiOSBuilder.prototype.updateXcodeProject = function updateXcodeProject()
var mainGroupChildren = xobjs.PBXGroup[pbxProject.mainGroup].children;
var generateUuid = this.builder.generateXcodeUuid.bind(this.builder, xcodeProject);

var frameworksGroup = xobjs.PBXGroup[mainGroupChildren.filter(function (child) { return child.comment === 'Frameworks'; })[0].value];
Copy link
Contributor

Choose a reason for hiding this comment

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

[0].value looks very error-prone, should we guard that first? Also, the whole new added code looks a bit too familar, don't we do all that at a different place already? Or was it only in TIMOB?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that code is from Hyperloop itself but i removed it during the dynamic framework changes. We used that previously to pull in all referenced system frameworks. Since iOS 7 that is not required anymore because of modules and semantic imports, see this answer on StackOverflow. So i now only use it to pull in explicitly required system frameworks that come from the appc.js setting. All other frameworks don't need to be manually added to the project anymore.

Copy link
Contributor

Choose a reason for hiding this comment

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

So this works even when no frameworks are referenced? I‘m ok with the changes then!

@hansemannn hansemannn merged commit 94510cb into tidev:master Oct 17, 2017
@hansemannn hansemannn modified the milestones: v2.3.0, v3.0.0 Oct 28, 2017
sgtcoolguy referenced this pull request in sgtcoolguy/hyperloop.next Nov 8, 2017
Fixes two framework handling regression preventing a user to pull in additional system frameworks via appc.js and accidently overwriting the whole FRAMEWORK_SEARCH_PATH build setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants