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

Don't require any GCDWebServers dependency when building Release #133

Merged
merged 4 commits into from
Nov 12, 2015

Conversation

alazier
Copy link
Contributor

@alazier alazier commented Nov 11, 2015

@appden

Fixes #132

@@ -698,6 +696,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
"$(BUILT_PRODUCTS_DIR)",
Copy link
Contributor

Choose a reason for hiding this comment

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

How did the linkage work before when this wasn't set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was in the Link with Libraries build phase.

@appden
Copy link
Contributor

appden commented Nov 12, 2015

The GCDWebServers.framework is still being embedded into the RealmReact.framework in Release configuration. I think the easiest solution for that is to add a script immediately after the Embed Frameworks build phases that deletes the framework if CONFIGURATION is not Debug. This will allow Xcode to manage the embedding a code signing process for debug mode still.

@bdash
Copy link
Contributor

bdash commented Nov 12, 2015

As far as the Xcode project changes, my inclination would be to use EXCLUDED_SOURCE_FILE_NAMES to exclude GCDWebServers.framework from the Release configuration. That'd let you leave the remainder of the configuration alone.

@appden
Copy link
Contributor

appden commented Nov 12, 2015

@bdash great suggestion, thanks!

@alazier
Copy link
Contributor Author

alazier commented Nov 12, 2015

EXCLUDED_SOURCE_FILE_NAMES works like a charm. Thanks.


Ivar executorIvar = class_getInstanceVariable([bridge class], "_javaScriptExecutor");
id executor = object_getIvar(bridge, executorIvar);
bool chromeDebugMode = [executor isMemberOfClass:NSClassFromString(@"RCTWebSocketExecutor")];
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make this isKindOfClass: to be a little extra safe? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isMemberOfClass is actually safer as we would catch any subclasses if the ReactNative implementation changed...

@appden
Copy link
Contributor

appden commented Nov 12, 2015

Looks good 👍

alazier added a commit that referenced this pull request Nov 12, 2015
Don't require any GCDWebServers dependency when building Release
@alazier alazier merged commit 935b72b into master Nov 12, 2015
@fealebenpae fealebenpae deleted the al-no-gdcwebservers branch June 20, 2017 11:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants