johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

It seems not work on simulator,Xcode 10.2 #281

Closed kuwo0322 closed 4 years ago

kuwo0322 commented 5 years ago

/Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle/iOSInjection10: dlopen(/Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle/iOSInjection10, 265): Symbol not found: _$SBOWV Referenced from: /Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle/iOSInjection10 Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib in /Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle/iOSInjection10

johnno1962 commented 5 years ago

Hi, With Xcode 10.2.1 you use iOSInjection.bundle instead of iOSInjection10.bundle

kuwo0322 commented 5 years ago

Injection connected, But still not work.What should I do? Could not locate containing project or it's logs. On macOS you need to turn off the App Sandbox. Have you customised the DerivedData path?

johnno1962 commented 5 years ago

Do you have non-ascii characters in the path to your project?

kuwo0322 commented 5 years ago

"/Users/jianghg/Documents/practice/Explore/InjectionTest/InjectionTest" is my project path

johnno1962 commented 5 years ago

Are you using custom "Derived Data" path?

kuwo0322 commented 5 years ago

I use defalult "Derived Data" path instead of custom path and it works now. thanks very much!