XCode no valid compiled storyboard at path

后端 未结 9 2254
迷失自我
迷失自我 2020-12-07 01:29

I\'ve got a universal XCode Project (ObjC) for iPad and iPhone with a subproject that contains a storyboard. The subproject is a static library that has been added to the ma

相关标签:
9条回答
  • 2020-12-07 02:21

    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.

    enter image description here

    0 讨论(0)
  • 2020-12-07 02:23

    For me solution is:

    I used this code to load a new view controller - [UIStoryboard storyboardWithName:@"UIViewController" bundle:nil];

    First I tried - [UIStoryboard storyboardWithName:@"UIViewController" bundle:[NSBundle mainBandle]];

    But no lucky, finally I changed this code to:

    [self performSegueWithIdentifier:@"Segue" sender:self];

    And it helped, maybe it can help somebody too.

    0 讨论(0)
  • 2020-12-07 02:23

    Had the same issue. Solved it buy adding libc++.tbd in Link Bindary with Libraries.

    0 讨论(0)
提交回复
热议问题