LoginSignup
4
4

More than 5 years have passed since last update.

.embeddedframework とは

Posted at

iOS/OS X 向けの SDK を .embeddedframework の形式で SDK を配布している場合があるので調べてみた。

どうやら、 .framework 本体に含まれる画像リソースなどを SDK を利用するプロジェクトからも利用しやすくするためのハックっぽいです。

.embeddedframework を丸ごと Xcode プロジェクトに追加すれば、 .embeddedframework/Resources 以下のファイルもプロジェクトに追加されるので使いやすい。

Pinterest.embeddedframeworkの例(一部省略)
$ tree Pinterest.embeddedframework
Pinterest.embeddedframework
├── Pinterest.framework
│   ├── Resources -> Versions/Current/Resources
│   └── Versions
│       ├── A
│       │   └── Resources
│       │       ├── Info.plist
│       │       ├── PinterestSDKResources.bundle
│       │       │   ├── Btn_PinIt_Pressed.png
│       │       │   ├── ...
└── Resources
    └── PinterestSDKResources.bundle -> ../Pinterest.framework/Resources/PinterestSDKResources.bundle

Apple の公式ドキュメントにもどうやら情報が無い
http://www.google.com/search?q=site:developer.apple.com+%22embeddedframework%22

.embeddedframework を利用している SDK

http://developers.pinterest.com/ios/
Resources にはロゴ画像などを含む .bundle

.embeddedframework についての情報

https://github.com/kstenerud/iOS-Universal-Framework/issues/20
http://rayvinly.com/how-to-build-a-truly-universal-framework-for-ios-and-mac-with-just-a-single-codebase/

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4