firstly you should make a integrated library then you should put it your sch and pcb library in this integrated library. Also after designing a sch or pcb lib you should RR shortcuts for the checking your mistakes.
and your pins which defining in the sch lib looks outside. like this=>
**broken link removed**