1

I am using swift package in several projects. In one of them, this package stopped compiling with error "Cannot find type 'any UITableView related type ' in scope". I can't fix it by any action. I tried:

Clean Build folder Reset Package Caches Readd package Clean DerivedData and restart xcode and computer In different combinations

Of course, I didn't forget 'import UIKit'.

What action can I try else?

UPDATE:

Actually any type from UIKit is not visible in package.

All other packages do not have any problems with UIKit.

This package does not have any problems in other projects.

2 Answers 2

0

I've encountered a similar issue. my answer may or may not help, but this is how I solved it.

what I saw: Cannot find 'UITableView' in scope & Reference to member 'systemGray6' cannot be resolved without a contextual type

what was my build: Mac

how I solved: change it to any iphone build. I changed my simulator to the iphone 15

i guess they are simply just not availble yet on mac

Sign up to request clarification or add additional context in comments.

Comments

-1

Remove all #import in bridging header of files contained in pods libraries

1 Comment

Swift package do not contain pods or bridging headers. Sorry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.