Why linker link static libraries with errors? iOS

后端 未结 17 1326
自闭症患者
自闭症患者 2020-11-27 14:39

I have a problem with linking my mixed language framework to a project.

1) I create a framework with Swift and Objective-C classes.

2) The main logic was stored in the

17条回答
  •  春和景丽
    2020-11-27 15:04

    In my case it was a React-Native project after adding a Swift Pods library. Maybe just the step 2 can work:

    1. Adding a new Swift file and a Brigde header:

    1) File -> New -> File

    2) Select Swift File

    3) Confirm Create Bridging Header

    1. Go to Build Settings and set Always Embed Swift Standard Libraries to YES

提交回复
热议问题