[ad_1]
I cloned Apple’s JSONSerialization supply code and moved JSONSerialization.swift and JSONSerialization+Parser.swift into my challenge.
As a result of I need to perceive how Apple applied their JSON parser. I renamed a bit from JSONSerialization -> JSONSerializationRS to keep away from any naming battle, however
Nonetheless I received error, like this:
Can not use class 'NSObject' right here; 'ObjectiveC' has been imported as implementation-only
Why?
This is likely one of the file: https://github.com/apple/swift-corelibs-foundation/blob/major/Sources/Basis/JSONSerialization.swift
Why is that this line exist within the high of the supply code?
@_implementationOnly import CoreFoundation
What do I have to get it up and operating, and capable of debug their code with my very own JSON?
Obtained following error additionally:
Can not discover sort '_NSNumberCastingWithoutBridging' in scope
Can not discover sort 'NSNull' in scope
I suppose I have to activate solely a flag, however which flag?
[ad_2]
