I've tried to create a local package as shown in https://developer.apple.com/videos/play/wwdc2019/410
The package seems to be imported correctly, but the source files are not found.
// Lunch/Lunch/ContentView.swift
import SwiftUI
import FoodNStuff
struct ContentView : View {
var body: some View {
Text(LunchItem().text) // Use of unresolved identifier 'LunchItem'
}
}// Lunch/FoodNStuff/Sources/FoodNStuff/LunchItem.swift
import Foundation
struct LunchItem {
var text = "Foo"
}https://styrka.app/images/Screenshot%202019-06-08%20at%2020.04.25.png
https://styrka.app/images/Screenshot%202019-06-08%20at%2020.04.36.png
I'm using
Xcode Version 11.0 beta (11M336w)
macOS 10.15 Beta (19A471t)