johnno1962 / injectionforxcode

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

Error loading #251

Open wkcdeie opened 6 years ago

wkcdeie commented 6 years ago

Error loading /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection: dlopen(/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection, 265): Symbol not found: __T0SPyxGs8_PointersWP Referenced from: /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection Expected in: /Users/xxxx/Library/Developer/CoreSimulator/Devices/921C0B79-E1D9-45EA-9C55-BAF532EBBE2A/data/Containers/Bundle/Application/19B3DE92-2C96-4CB5-B394-2308819F5218/xxxxxx.app/Frameworks/libswiftCore.dylib in /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection

TPQuietBro commented 6 years ago

I have the same question: MyInjectionDemo[2319:97348] Error loading /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 Please check this, Tks!

TPQuietBro commented 6 years ago

Xcode:9.3.1 Injection3

johnno1962 commented 6 years ago

App store version?

TPQuietBro commented 6 years ago

yes,downloaded from AppStore.

johnno1962 commented 6 years ago

Are you running Xcode from the default path /Applications/Xcode.app?

TPQuietBro commented 6 years ago

emmm,I ran Xcode not from /Applications/Xcode.app. I tried it as you said and it worked. Tks!

mohamedkhedr commented 6 years ago

Is it possible to run xcode from a different path and still work with the appstore version of injectionIII? if not, where i have to change to point to my custom directory installation of xcode? Or i have to use a different approach?

johnno1962 commented 6 years ago

No, you’d need to rebuild it from this repo: https://github.com/johnno1962/InjectionIII/tree/MAS-version

mohamedkhedr commented 6 years ago

thanks, changed the default path, exported and it's working as expected. maybe in the future i will add a directory selector in the menu, but it's fine for me right now.