在podfile文件中增加如下代码:
pod 'EffectOneKit', 'X.X.X', :source =>'https://github.com/volcengine/volcengine-specs'
其中“X.X.X” 替换为对应的版本号,例如1.1.0
EffectOneKit.podspec
、EffectOneKit.xcframework
放在工程的根目录下(和Podfile同级)。Podfile中添加pod 'EffectOneKit', :path => './'
。
执行pod install
。
将EffectOneKit.xcframework放在工程的根目录下。
按如下步骤导入你的工程中。
打开你的 Xcode 项目。 在项目导航器中,选择target。 转到 "General" 选项卡。 在 "Frameworks, Libraries, and Embedded Content" 部分,点击 "+" 按钮。 选择 "Add Other..."。 浏览并选择EffectOneKit.xcframework文件,然后点击 "Open"。 在 "Frameworks, Libraries, and Embedded Content" 部分,选择你刚刚添加的。EffectOneKit.xcframework 文件。 在右侧的 "Embed" 列表中,选择 "Embed & Sign"。
EffectOneKit.xcframework
、EOExportUI
、EOExportUI.podspec
放在工程的根目录下(和Podfile同级)。Podfile中添加pod 'EOExportUI', :path => './'
。
在Targets
的 Build Settings
搜索:User script sandboxing
设置为NO
。
执行pod install
。
EffectOneKit_spm
放在工程的根目录下。(EffectOneKit_spm
)EffectOneKit_spm
中没有EffectOneKit.xcframework
,请将EffectOneKit.xcframework
拖入到EffectOneKit_spm
文件夹下。File -> Add Package Dependency... -> Add Local... -> EffectOneKit_spm
** 。