ksnowlv

回顾过去,总结以往;立足现在,铭记当下;技术为主,笔记而已.

Swift之framework

| Comments

swift版本的framework有哪些关键点需要注意呢?

  • 1.类需要公有。
  • 2.方法需要公有并且使用@objc修饰。不然
  • 3.引用framework注意事项。
    • 引用framework时,需要以Embedded Binaries方式引入,而不是Linked Frameworks and Libraries.不然,会出现dyld: Library not loaded: @rpath/YKBaseFrameWork.framework/YKBaseFrameWork

    image

Comments

comments powered by Disqus
Included file 'custom/after_footer.html' not found in _includes directory