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

Injection always says it is already loaded #54

Closed
eduardbosch opened this issue Mar 14, 2019 · 2 comments
Closed

Injection always says it is already loaded #54

eduardbosch opened this issue Mar 14, 2019 · 2 comments

Comments

@eduardbosch
Copy link

Hi,

I'm trying this library, but when I load it, it always says that the injection in already loaded.

The problem is that my main bundle path is like this:
/users/username/library/developer/coresimulator/devices/****/data/containers/bundle/application/****/appname.app
and this line is always false:

if !Bundle.main.bundlePath.lowercased().contains("products/debug") {

If I remove this check, everything goes well.

Is this the intended result?

Many thanks

Environment:
Mojave 10.14.3 (18D109)
Xcode 10.1 (10B61)

@zenangst
Copy link
Owner

Hey @eduardbosch, that check was more intended for macOS but I think I'll go ahead and remove it as it is causing issues for people. Or even better, would you mind making a PR to remove it and I'll review it? :)

@eduardbosch
Copy link
Author

Of course, I already had it on a fork 🙂

Here it is the PR #55

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

No branches or pull requests

2 participants