I'm using xcode 16 with swift. I'm trying to call a function in another file. It used to work. Now I'm getting: Cannot find 'detailline' in scope. Detailline is the function I'm calling. I just added variables to the top. I have since deleted them. Please help.
Cannot find 'detailline' in scope
Thanks for the post.
The error "Cannot find 'x' in scope" in Swift typically occurs when the compiler cannot find the declared function you are trying to call. There could be a few reasons for this error, especially after adding and deleting variables.
Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.
Albert Pascual Worldwide Developer Relations.
Thank you. I'll try to create a test project. What are the few reasons it could be?
I got a test project. I don't know how to send a link. Can you help me? Thanks
Is it file/share Email a link I think I need your email.
Did you forget about me?