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

append instead of clobber SIM_CTL_DYLD_INSERT_LIBRARIES #999

Merged
merged 3 commits into from
Oct 29, 2018

Conversation

quinlanj
Copy link
Contributor

Whatever the user specifies in SIM_CTL_DYLD_INSERT_LIBRARIES should propagate through and be reflected in the xcrun simctl launch call that AppleSimUtils makes.

My use case: I am passing in my own dylibs that I specify in SIM_CTL_DYLD_INSERT_LIBRARIES, and I would like this dylib to get used by my app. This will also help me fix #917

I append the detox framework path to the env var, separated by a colon, as this is the format expected specified by man dyld:

DYLD_INSERT_LIBRARIES
              This is a colon separated list of dynamic libraries to load before the ones specified in the program.  This lets you test new modules of
              existing dynamic shared libraries that are used in flat-namespace images by loading a temporary dynamic shared library with just the new
              modules.   Note  that  this  has  no  effect  on  images  built  a  two-level  namespace  images  using  a dynamic shared library unless
              DYLD_FORCE_FLAT_NAMESPACE is also used.

@LeoNatan LeoNatan merged commit 45c895a into wix:master Oct 29, 2018
@LeoNatan
Copy link
Contributor

Thank you for your contributions! Really appreciated!

@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detox hangs on detox config step with expo iOS
2 participants