-
Notifications
You must be signed in to change notification settings - Fork 46
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
Xcode 10.2 and Swift 5 problem building #21
Comments
I'm fairly certain this repo isn't compatible with Swift 5 yet... |
Any plan to support swift 5? |
Easier said than done, although it seems like @paulofaria is working on it.
|
Let’s wait for a resolution |
Hi all, here they found solution: wickwirew/Runtime#37 |
@paulofaria is already over there too haha. Can't wait for this to be fixed 😄 |
No news? |
Any updates on this? |
@filbertasurion @mapo80 @NSExceptional @tanner0101 I'd highly recommend migrating to wickwirew/Runtime as it's a maintained version of this lib and operates very similarly. |
I tried Runtime, but it's crashing when I'm trying to do the code below from Zewo/Reflection: // import Reflection typealias MappableDictionary = [String : Any] enum Error : ErrorProtocol { protocol Mappable { extension Mappable {
} struct Person : Mappable { struct PhoneNumber : Mappable { let dictionary = [ let person = try Person(dictionary: dictionary) |
@filbertasurion just tried the code above and it works for me in Xcode 10.2 with swift 5. Make sure you have the latest version installed. If it doesn't work feel free to open an issue 👍 |
Could you share the code on how these were written on Runtime? I've used Xcode 10.2 with swift 4.0 and I'm still getting Swift Compiler Error. Thanks! |
After all debugging & research with the help of alibaba/HandyJSON@da72f29 I changed _swift_getFieldAt with swift_getTypeByMangledNameInContext in Nominal.swift file @line 31. @_silgen_name("swift_getFieldAt") ---> @_silgen_name("swift_getTypeByMangledNameInContext") I am able to compile & test successfully with this small change. Try this & share your feedback |
Change from @_silgen_name("swift_getFieldAt") to @_silgen_name("swift_getTypeByMangledNameInContext")
Annoyingly this now gives me a SEGFAULT:
Any clue how to work around this? |
Hi,
on Xcosw 10.2 and in particular with swift 5 there's a serious problem.
Here is:
Undefined symbols for architecture x86_64: "_swift_getFieldAt", referenced from: closure #1 (Swift.Int) -> (Swift.String, Any.Type) in (extension in Reflection):Reflection.NominalType.fieldNamesAndTypes(for: Any.Type) -> [(Swift.String, Any.Type)]? in NominalType.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've searched on google and found this blog post:
Can you help?
Thanks.
The text was updated successfully, but these errors were encountered: