I want to use my webrtc .a static library in swift. Can you help please? I read you can´t use static libraries in swift, is that true?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
Have you fixed this problem you asked? I meet this problem on today too, and I've fixed it just a moment. If you don't have fixed this problem, you can try the below steps:
Then all done, you can use the functions of the static libraries now.
With Xcode 9 using static libraries supported with Swift. You can use like using in Objective-C. Xcode Release Notes
Yes, you can use static libraries in Swift. Go to your Build Phases and under "Link Binary With Libraries" and add them there.
Alternatively, you can go under Build Settings and in "Search Paths" append the "Library Search Paths" value to include the path to the folder that your .a file is in.
You can add headers for your library the same way under the "Header Search Paths"
Also keep in mind that if this library is written in Objective-C, you will need a Bridging Header to use it in Swift.