Xcode No Valid Compiled Storyboard at Path

XCode no valid compiled storyboard at path

To answer my own question;

This error appears when the bundle target isn't universal.
So make sure the Targeted Device Family in the bundle's build settings is set to iPhone AND iPad.

Sample Image

App crashes on iOS10 with exception There doesn't seem to be a valid compiled storyboard at path

This issue was resolved by disabling caching in NSFetchedResultsControllers.

Some symptoms not mentioned before because I had no idea the symptoms were related:

  • I was never able to reproduce a crash in a Debug environment, only on a Beta or Release build.
  • The error message:

    [error] error: (NSFetchedResultsController): couldn't read cache file to update store info timestamps

    was frequently logged in the Debug output but never in Production logs.

  • After paying more attention to the above error message, I could see that my App was creating a large amount of File Descriptors, opening files in a cache folder and never closing or releasing them.

My App has quite a few NSFetchedResultsControllers created with:

NSFetchedResultsController *fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:nil cacheName:@"someName"];

which I changed to:

NSFetchedResultsController *fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:nil cacheName:nil];

which resolved the issue.

The following post also helped to point me in the right direction:
too-many-open-files-after-calling-fabric-framework-run

The file *.storyboardc was not found

I guess it's a bug. I solved this problem when I moved Main.storyboard (NSExtensionMainStoryboard defined in info.plist) to the subdirectory of extension target. It means that you can't localize main.storyboard, because it will be moved to base directory or specific language directory.



Related Topics



Leave a reply



Submit