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

One of the two will be used. Which one is undefined. #255

Open
lee-eve opened this issue Jun 30, 2018 · 8 comments
Open

One of the two will be used. Which one is undefined. #255

lee-eve opened this issue Jun 30, 2018 · 8 comments

Comments

@lee-eve
Copy link

lee-eve commented Jun 30, 2018

Hi,I have some problem When I use Injection III(AppStore Version),I have loaded it in Appdelate and implemented the injected method.

  • Device:Simulator iPhoneX
  • Xcode Version :Version 9.3

Injection connected, watching /Users/rouslee/Desktop/zuolin/zuolin_ResourceReservation_3.5/client_base_ios/**
*** Compiling /Users/rouslee/Desktop/zuolin/zuolin_ResourceReservation_3.5/client_base_ios/EHProject/ResourceReservation/ViewCtl/ReservationMainViewCtl/EHResourceReservationMainViewCtl.m ***
Loading .dylib - Ignore any duplicate class warning...
objc[36655]: Class EHResourceReservationMainViewCtl is implemented in both /Users/rouslee/Library/Developer/CoreSimulator/Devices/5C07D31F-85DA-4889-8103-3E986942A5FC/data/Containers/Bundle/Application/D544CEB1-AD46-4B86-B19F-18B2D1443D5F/Techpark.app/Techpark (0x10ae39fd0) and /Users/rouslee/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib (0x13101d0a0). One of the two will be used. Which one is undefined.

The following questions , How can I fix it?

@johnno1962
Copy link
Owner

You can ignore this message. It’s a warning.

@lee-eve
Copy link
Author

lee-eve commented Jun 30, 2018

But it don‘t work!

@johnno1962
Copy link
Owner

This could be for all sorts of reasons. Have you tried the “GettingStarted.zip” example? Can you post the code you’re trying to inject?

@johnno1962
Copy link
Owner

How do you mean?

@lee-eve
Copy link
Author

lee-eve commented Jul 5, 2018

Sorry, I didn't respond in time. I tried to change the background color simply in a view demo, but when I want to use it in a real project, the view is more complicated and it can't work.

// Code inside AppDelegate didFinishLaunchingWithOptions method
#if DEBUG
    NSBundle *bundle = [[NSBundle alloc] initWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"];
    [bundle load];

#endif
 
// Code inside MyViewController 

- (void)injected {
    NSLog(@"injected Some thing....");
    [self viewDidLoad];
}
 

@Chance-Cheng
Copy link

Have you solved the problem?

@TomLongJoy
Copy link

Hello I have the same problem.

-(void)injected{
self.nameLabel.backgroundColor = UIColor.greenColor;
}

💉 *** Compiling /Users/ZLJFaceCollectCell.m ***
💉 Loading .dylib - Ignore any duplicate class warning...
objc[13410]: Class ZLJFaceCollectCell is implemented in both /Users/xxx (0x10544e328) and /Users/xxx/eval102.dylib (0x1331c8510). One of the two will be used. Which one is undefined.
💉 Loaded .dylib - Ignore any duplicate class warning...

@bluelabeldeveloper1
Copy link

I got same error

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

5 participants