I want to create a configurable widget with dynamic options. So I followed the Apple documentation and everything went fine until I needed to reach the .intentdefinition file.
This is a part of my widget code wich also shows the error.
I did add the .intentdefinition file to the correct targets as mentioned by Apple. For a dynamic widget, you also need to create a Intent Extension. Which I did. If you look to at the screenshot, you'll see that it can reach the .intentdefinition file and doesn't give any errors.
I tried to delete the .intentdefinition file and recreate it, but this didn't make a difference. I also made sure to build the project first when the .intentdefinition file was created.
On the screenshot below, you can see that I added the .intentdefinition file to the corresponding targets.
I hope someone can help me out on this.
Here is a post with the corresponding images.
https://stackoverflow.com/questions/64185405/intentdefinition-file-cant-be-found-by-a-swift-file-from-my-widget-extension
This is a part of my widget code wich also shows the error.
I did add the .intentdefinition file to the correct targets as mentioned by Apple. For a dynamic widget, you also need to create a Intent Extension. Which I did. If you look to at the screenshot, you'll see that it can reach the .intentdefinition file and doesn't give any errors.
I tried to delete the .intentdefinition file and recreate it, but this didn't make a difference. I also made sure to build the project first when the .intentdefinition file was created.
On the screenshot below, you can see that I added the .intentdefinition file to the corresponding targets.
I hope someone can help me out on this.
Here is a post with the corresponding images.
https://stackoverflow.com/questions/64185405/intentdefinition-file-cant-be-found-by-a-swift-file-from-my-widget-extension