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:

image

they have storyboard respectively , want connect 2 storyboard pressing "to project two" follow:

image

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.

enter image description here

the key information put in storyboard reference. need include bundle name well! reference have included link adding storyboard reference

enter image description here

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.

enter image description here

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.

enter image description here

now each project contains reference shared folder, sharing relationship explicitly shown within project navigator.

enter image description here


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -