cordova-plugin-carthage-support

本プラグインはCarthageで導入したライブラリを使用してCordovaプラグインを開発するためのプラグイン。 Xcodeの`Build Phases`へ`Run Script`の設定を行う。

Usage no npm install needed!

<script type="module">
  import cordovaPluginCarthageSupport from 'https://cdn.skypack.dev/cordova-plugin-carthage-support';
</script>

README

cordova-plugin-carthage-support

本プラグインはCarthageで導入したライブラリを使用してCordovaプラグインを開発するためのプラグイン。
XcodeのBuild PhasesRun Scriptの設定を行う。

Supported Platforms

  • iOS

Supported version

Ruby(>=2.3.0)
Node(>=6.13.1)
Cordova(>=6.5)
Carthage(>=0.2)

Requirement

https://github.com/Carthage/Carthage
https://github.com/CocoaPods/Xcodeproj
https://github.com/Leonidas-from-XIV/node-xml2js

Installation

cordova plugin add https://github.com/nrikiji/cordova-plugin-carthage-support.git

Usage、Example

  1. plugin.xmlのframeworkタグにcarthage属性を追加

plugin.xml

<carthage>
  <cartfile>github "line/line-sdk-ios-swift" ~> 5.0</cartfile>
  <framework src="LineSDK.framework"/>
  <framework src="LineSDKObjC.framework"/>
</carthage>
  1. cordova prepare iosのタイミングでBuild PhasesRun Scriptへ設定