Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB13961574: Xcode 16 beta: Runtime issue, can't find bundle, change to storyboard references and SPM #531

Open
thomas-chris opened this issue Jun 18, 2024 · 3 comments

Comments

@thomas-chris
Copy link

  • Date: 2024-06-18
  • Resolution: Open
  • Area: Swift Compiler
  • OS: iOS
  • Type: Incorrect/Unexpected Behavior
  • Keywords: SPM, Storyboard references, Missing bundles

Description

I think this is a compiler issue.

I have a demo project that displays the behaviour

In Xcode 15 to use storyboards and other resources I have followed some workarounds to get the app to load the resources at initialisation (see top answer here)

In Xcode 16 beta this no longer seems to work, storyboards can no longer be referenced from a swift package

See the example project attached. Build in Xcode 15, it will run and you can navigate to the second tab (mission the tab bar icon), build in the beta and when the app launches it crashes Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'PackagedViewController' in bundle NSBundle

Files

FeedbackDemo.zip

@thomas-chris thomas-chris changed the title FBXXXX: Title FB13961574: Xcode 16 beta: Runtime issue, can't find bundle, change to storyboard references and SPM Jun 18, 2024
@MattRapchat
Copy link

@thomas-chris did you ever find a workaround for this?

@thomas-chris
Copy link
Author

The only way we worked around this was to remove the storyboard references and use code - which isn't solving the issue in the slightest

Nothing has come back on my feedback yet either

@MattRapchat
Copy link

Got it - I appreciate the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants