handling dependencies for iOS Framework project

前端 未结 7 2093
不思量自难忘°
不思量自难忘° 2020-12-28 08:09

I\'ve created iOS Framework project using this method: https://github.com/jverkoey/iOS-Framework

Works pretty neat but I\'m a little confused on how to include libra

7条回答
  •  既然无缘
    2020-12-28 09:03

    You shouldn't link anything when building your framework but just create a *.a binary with your framework's objects.

    Also you should not include code from other libraries in your framework as client applications may be adding the same libraries directly or requiring different versions of them, thus creating conflicts.

    Off course you can reference *.h header files from other libraries in your framework in order to compile your objects.

    As a result the installation steps for your framework should detail other required frameworks/libraries needed, their supported versions, how to add resource files (if any), etc. Just some of the many reasons why you may want to consider Creating a CocoaPods' podspec instead.

提交回复
热议问题