ios - Using a storyboard reference to a storyboard in a different project/bundle appears broken -
now, have workspace have 2 project inside, 1 call "projectone" , other "projecttwo" follow:
they have storyboard respectively , want connect 2 storyboard pressing "to project two" follow:
but when click button, show
"terminating app due uncaught exception 'nsinvalidargumentexception', >reason: 'could not find storyboard named 'two' in bundle nsbundle 8c6a5fdc9e06/projectone.app> (loaded)'"
is possible that? seeking method few days no idea...
you need use complete names of storyboard including if storyboard in project/module - means including bundle name. please see image below how set in storyboard. have created example setup projectone , projecttwo same project setup.
the key information put in storyboard reference. need include bundle name well! reference have included link adding storyboard reference
edit
while works leads issues later on start build storyboard out various scenes backed view controllers, have linked both project targets. more importantly relationship hidden in project's configuration details. better way work take advantage of workspace , add shared folder resources used both projects.
next add shared folder workspace @ same level projectone , projecttwo. add reference shared folder each project dragging on project files(xcodeproj). add folder projects target you.
now each project contains reference shared folder, sharing relationship explicitly shown within project navigator.
Comments
Post a Comment