2 Replies
      Latest reply on Jan 17, 2019 9:37 AM by dsmaltz@javelin21.com
      dsmaltz@javelin21.com Level 1 Level 1 (0 points)

        I am using Xcode 9.2 and trying to build a Swift Static Library of one .swift file but when I compile it does not produce the ProductName-swift.h file. I have added the @objc tag to the class and Yes to define modules. This worked once, but then it never updated the swift.h file when I made changes to the .swift file. Here is the simple swift code:



        //  UserWebViewController.swift

        //  CustomSwiftLibrary


        //  Created by David Smaltz on 1/11/19.

        //  Copyright © 2019 David Smaltz. All rights reserved.



        import Foundation

        import UIKit


        @objc class UserWebViewController: UIViewController {

            weak var webView: UIWebView!


            //var webView: UIWebView!


           override func viewDidLoad() {



                let url: URL = URL(string: "http://yahoo.com")!

                webView.loadRequest(URLRequest(url: url))




        extension UserWebViewController {


            func setupUI() {

                view.backgroundColor = .white