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

Symbol not found: _OBJC_CLASS_$_SwiftObject #145

Closed
linshiqing opened this issue May 21, 2019 · 10 comments
Closed

Symbol not found: _OBJC_CLASS_$_SwiftObject #145

linshiqing opened this issue May 21, 2019 · 10 comments

Comments

@linshiqing
Copy link

Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle")!.load()

Error loading /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection: dlopen(/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection, 265): Symbol not found: OBJC_CLASS$_SwiftObject
Referenced from: /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftCore.dylib
in /Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle/iOSInjection

@johnno1962
Copy link
Owner

Is this an Objective-C project?

@linshiqing
Copy link
Author

No, it is a Swift project。
It is "GettingStarted" from your website http://johnholdsworth.com/injection.html。
The Xcode Version is 10.2.1。
No matter Swift or Oc project I run, "dlopen" the bundle always get the similar result。
Could you give a version which has been adaptive to the Xcoe 10.2.1,thks!

@johnno1962
Copy link
Owner

The version in the App store is adapted fro 10.2* Which bundle are you loading. It should be the one without the “10” suffix.

@linshiqing
Copy link
Author

The bundle with "10" suffix still not success。
Error loading /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:

@johnno1962
Copy link
Owner

I’m not able to replicate your problem. Is your Xcode 10.2.1 at the path /Applications/Xcode.app?

@linshiqing
Copy link
Author

Yes,the path is /Applications/Xcode.app。
I download the app from the AppStore and run the command "[[NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle"] load];" again, it works and success , but if I modify the bundle to "iOSInjection10.bundle" it failed with the log ->" Error loading /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
Copy link
Owner

/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle is the path you want to be using.

@linshiqing
Copy link
Author

thks and I have another question :which is the Injection's latest version 1.5.2 ? Should we use InjectionIII or InjectionX。

@johnno1962
Copy link
Owner

Sorry, you must have downloaded from the out of date link in the README.md. The most recent pre-release version is here: https://github.com/johnno1962/InjectionIII/releases/tag/1.5.2 (with a fix for storyboard injection on 10.2) but the App Store version is the supported version.

@linshiqing
Copy link
Author

I see,thank you for your patience and explanation .

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