Closed ondrejstasek closed 1 year ago
Damn, we just released a new version yesterday. I am wondering on which version u r. If you open Package dependencies -> Pendo -> Package what is the url u have there? Strange I cant reproduce any thing similar
Ok will fix in couple of minutes. The interesting thing is how do we get to it, any chance u could share code snippets of your app structure. i.e the initial code of your view hierarchy not the content BUT the high level design u r using. For instance in my sample app I have the following:
@main
struct AvocadosApp: App {
let persistenceController = PersistenceController.shared
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
@State var selected = 4
var body: some Scene {
print("AvocadosApp body entry")
return WindowGroup {
WithPendo() {
return TabView() {
let _ = print("TabView1111")
AvocadosView().tabItem {
Image("tabicon-branch")
Text("Avocados")
}.tag(0)
ContentView(facts: factsData, recipes: recipesData).tabItem {
Image("tabicon-book")
Text("Recipes")
}.tag(1)
.navigationTitle("Recipes")
RipeningStagesView().tabItem {
Image("tabicon-avocado")
Text("Ripening")
}.tag(2)
SettingsView().tabItem {
Image("tabicon-settings")
Text("Settings")
}.tag(3)
TestView().tabItem {
Image(systemName: "pencil.circle")
Text("Test")
//Label("Editor", systemImage: "pencil.circle")
//Text("Editor")
}.tag(4)
}
.edgesIgnoringSafeArea(.top)
.accentColor(.primary)
.onOpenURL(perform: handleURL)
}
}
}
please use the latest version it should be 2.20.0.6599
please use the latest version it should be 2.20.0.6599
Looks good 👍🏻
@ondrejstasek any chance u could share a small high level structure of your app (the initial part) . I would like to understand how do we got to this case?
Found unexpected null pointer value while trying to cast value of type 'UIViewController' (0x7fbb8301afe0) to 'PendoSDK.PNDHostingControllerProtocol' (0x7fbb8301aff8) CoreSimulator 857.13 - Device: iPhone 14 (D753AE2B-9ADC-407A-807A-554113E8F77C) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14