There are 2 workarounds,

  1. Replace all appearance of UIPopoverController in a message (e.g. [UIPopoverController alloc]) with NSClassFromString(@"UIPopoverController")or
  2. Make UIKit weakly linked. (右键点击target的get info, 把UIKIt的required改成weak)