Navigation/BundleDecoder.swift:16: Fatal error: Unexpectedly found nil while unwrapping an Optional value

import Foundation

struct BundleDecoder { static func decodeLandmarkBundleJson() -> [City] { let landmarkJson = Bundle.main.path(forResource: "landmarks", ofType: "json") let landmark = try! Data(contentsOf: URL(fileURLWithPath: landmarkJson!), options: .alwaysMapped) return try! JSONDecoder().decode([City].self, from: landmark) } }

Navigation/BundleDecoder.swift:16: Fatal error: Unexpectedly found nil while unwrapping an Optional value
 
 
Q