Why linker link static libraries with errors? iOS

后端 未结 17 1359
自闭症患者
自闭症患者 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 14:55

    Apparently for pure objective-c projects you will need to add this $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) to the library search paths of your target. This worked for me when I was including a library written in swift to a project in objective-c

提交回复
热议问题