使用CLI命令或Ionic配置将AdSupport Framework添加到Xcode项目

问题描述 投票:0回答:1

我目前正在开发一种离子应用程序,其目标平台是ios。我使用Firiebase Analytics插件和this requires to add AdSupport Framework进入Xcode构建配置。

我不想在记录时手动添加它,因为它会破坏我的连续交付过程。有没有办法使用CLI或离子配置以编程方式为构建添加框架?

ios xcode cordova ionic-framework firebase-analytics
1个回答
0
投票

试试:

在ios下打开plugin.xml(在firebase analytics插件文件夹中)和下面的行:

<platform name="ios">
   <framework src="pointToYour/File.framework" embed="true" />
</platform>

0
投票

根据文档(1)(2)在项目config.xml中无法指定。但是,当您编写新插件时,可以在Plugin.xml中指定ios所需的框架库。

这是framework财产:

标识插件所依赖的框架(通常是OS /平台的一部分)。

// In Plugin.xml
<framework src="libsqlite3.dylib" />
<framework src="social.framework" weak="true" />
<framework src="relative/path/to/my.framework" custom="true" />
<framework src="GoogleCloudMessaging" type="podspec" spec="~> 1.2.0" />

我找到了一个插件,允许hereI forked it满足我的特殊需求。

© www.soinside.com 2019 - 2024. All rights reserved.