0

xcode project file structure

I can't access classes - e.g. public class Foo in ContentView.swift, from within JSBridge.swift

import Foo does not work. And no 'target membership' panel on the right hand side of xcode displays for any JSBridge dir file (which prevents testing whether target membership is the issue).

How might I make my classes available to files within this JSBridge folder / JSBridge.swift file?

Edit: I have this JSBridge dir in my build settings > compile sources. But there's still no 'target membership' panel when I click on any of the JSBridge files.

How do you make this dir/dir's files members of your target?

enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ask P
  • 355
  • 2
  • 14
  • If your files are not members of a target, then they shouldn't even be compiled. Make them members of the right target. – gnasher729 Feb 29 '20 at 08:35
  • I edited my answer w/ a pic to give more context. JSBridge dir is part of my compile sources - am I missing something that would make all JSBridge dir files members of my target? – Ask P Feb 29 '20 at 08:47
  • You might find helpful topic [Add dependency on a local swift package in Xcode 11](https://stackoverflow.com/a/59183124/12299030) – Asperi Feb 29 '20 at 09:02

0 Answers0