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

Load bundle fail if serval Xcode exist. #6

Closed
starFelix opened this issue Dec 6, 2017 · 9 comments
Closed

Load bundle fail if serval Xcode exist. #6

starFelix opened this issue Dec 6, 2017 · 9 comments

Comments

@starFelix
Copy link

If somebody had serval Xcode in Applications, he will get the error like below:

/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection:  dlopen(/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection, 265): Library not loaded: @rpath/XCTest.framework/XCTest
  Referenced from: /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection
  Reason: image not found

All the Xcode is download through Internet and not from AppStore. At the beginning, I think maybe the problem is the Xcode-GM.app should change it's name to Xcode.app . But I found it doesn't work.

@johnno1962
Copy link
Owner

johnno1962 commented Dec 6, 2017

I’ve pushed a change to include XCTest in iOSInjection.bundle which should solve this

@starFelix
Copy link
Author

Are you sure you had included it? I had update the code, and I found I would get this error whether there are one or more xcode.

@starFelix
Copy link
Author

And I had read the commits today. I didn't find anything about XCTest.

@johnno1962
Copy link
Owner

There was a very small change to the InjectionBundle target to include XCTest.framework are you building from source or downloading the app?

@johnno1962
Copy link
Owner

There were a couple of problems which should be ironed out now in the download and on github.

@starFelix
Copy link
Author

I had updated the project. And It works well in my project. I will try it on my friend's project tomorrow. He have serval xcode.

@johnno1962
Copy link
Owner

Good. I can’t promise it will work for a project that is only Objective-C when there isn’t an Xcode.app in the standard place due to the swift libraries.

@starFelix
Copy link
Author

It works well now. But I didn't know why rename the Xcode.app did not resolve this problem.

@johnno1962
Copy link
Owner

johnno1962 commented Dec 7, 2017

Can’t say. It was difficult getting the “rpath” right and testing it properly.
Thanks for your help resolving these things 👍

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