kylef / JSONSchema.swift

JSON Schema validator in Swift
BSD 3-Clause "New" or "Revised" License
273 stars 76 forks source link

Not compiling #154

Open NishanthMurugan opened 3 years ago

NishanthMurugan commented 3 years ago

Create a new project and pod 'JSONSchema'

After pod install in a fresh project and compile. It is showing, No reference to this variables error..

Screenshot 2021-10-07 at 4 36 54 PM
gtrevg commented 3 years ago

I'm running into the same thing. It looks like the validations used to be in https://github.com/kylef/JSONSchema.swift/blob/0.5.0/Sources/Validators.swift , but they were refactored/migrated to https://github.com/kylef/JSONSchema.swift/tree/0.6.0/Sources/Validation in 0.6.0. It's unclear what's causing the compilation issue.

AresProductions commented 2 years ago

The issue has to do with their Tag Release 0.6.0. There's a mistake on the JSONSchema.podspec file.

Specifically: spec.source_files = 'Sources/**.swift' should be spec.source_files = ['Sources/**/*.swift', 'Sources/*.swift']

They need to release a new tag with this change. In fact, it's already been fixed in master.

For anyone needing a quick fix: Change your podfile to download from the following: pod 'JSONSchema', :git => 'https://github.com/kylef/JSONSchema.swift'

Sanju9026 commented 2 years ago

The issue has to do with their Tag Release 0.6.0. There's a mistake on the JSONSchema.podspec file.

Specifically: spec.source_files = 'Sources/**.swift' should be spec.source_files = ['Sources/**/*.swift', 'Sources/*.swift']

They need to release a new tag with this change. In fact, it's already been fixed in master.

For anyone needing a quick fix: Change your podfile to download from the following: pod 'JSONSchema', :git => 'https://github.com/kylef/JSONSchema.swift'

Any update when the new tag will release ?

sup-fmarais commented 4 months ago

The issue has to do with their Tag Release 0.6.0. There's a mistake on the JSONSchema.podspec file.

Specifically: spec.source_files = 'Sources/**.swift' should be spec.source_files = ['Sources/**/*.swift', 'Sources/*.swift']

They need to release a new tag with this change. In fact, it's already been fixed in master.

For anyone needing a quick fix: Change your podfile to download from the following: pod 'JSONSchema', :git => 'https://github.com/kylef/JSONSchema.swift'

I just used the following

pod "JSONSchema", "0.5.0"