Mac OSX 调用 Dylib

1, create mac dylib project 

2, click Target -> Build Settings -> Search "Dynamic Library Install Name" and change to "@executable_path/../Frameworks/$(EXECUTABLE_PATH)"

3, build

4, create mac application project

5, add dylib file to application project

6, click Target -> Build Phases -> add Build Phase -> add copy files -> select Destination to "Frameworks" -> drag dylib file 

7, set "Framework Search Paths" to " @executable_path/../Frameworks/ "

8, build.

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页