3 Replies
      Latest reply on Jul 26, 2018 7:20 PM by QuinceyMorris
      aapldev1 Level 1 Level 1 (0 points)

        I was trying to build the code below but got the linker error:

        CODE:

        import UIKit
        import ReplayKit
        
        class ViewController: UIViewController {
         var broadcastPicker: PRSystemBroadcastPickerView? // this variable caused the error
         override func viewDidLoad() {
        ...



        ERROR:

        Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_RPSystemBroadcastPickerView", referenced from: objc-class-ref in ViewController.o
        ld: symbol(s) not found for architecture x86_64

        clang: error: linker command failed with exit code 1 (use -v to see invocation)

         

        I noticed that some ReplayKit classes available in iOS 11 like RPScreenRecorder work just fine, it seems only new classes in iOS 12 could cause issue like this.

        Any idea?