xcode - Can't reference type in separate project -


i have class in project called infrastructure.

public class myclass {     public init() {     }  } 

the file class defined in in project's list of compiled sources , target compiles successfully.

i've imported project name project's source file , referenced class.

let s = myclass() 

i've added infrastructure project target link binary libraries list.

xcode has no problem recognising myclass - adds code completion it.

however compiler says,

use of unresolved identifier 'myclass'

what strange if remove initialiser myclass compiler see class says,

'myclass' cannot constructed because has no accessible initializers

what wrong solution?

i have tried cleaning projects , deleting of output files.

the problem seems in project doing targeting. i'm able reference myclass different new project.

i created new projects, proved possible, deleted projects, deleted generated files , compiled.

i changed couple of options in project couldn't reference type in order mirror settings in 1 of new projects. although doing had no immediate effect. lolz.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -