gpt4 book ai didi

ios - 在 podfile 中添加 'use_frameworks!' 会破坏应用程序

转载 作者:行者123 更新时间:2023-11-30 13:35:24 30 4
gpt4 key购买 nike

我的 iOS 应用程序包含 Objective-C 和 Swift 代码。现在我在 pod 文件顶部添加了 use_frameworks! 来使用一些 swift 库。不幸的是它开始出现编译错误。

我的 Pod 版本:0.39.0

它开始提示bridge.h文件中的导入

Pod 文件包含 Objective-C 库。现在我想添加 swift 库。

我该如何解决这个问题。如果需要更多详细信息,请告诉我

use_frameworks!
platform :ios, '9.0'

xcodeproj 'Test.xcodeproj'

def devDependecies

pod 'SocketRocket'
pod 'CocoaLumberjack'
pod 'MRProgress'
pod 'GRMustache', '~> 7.3.0'
pod 'Realm', '=0.96.2'
pod 'ADALiOS'
pod 'Office365/Outlook'
pod 'Office365/Discovery'
pod 'AFNetworking'
#https://github.com/youtube/youtube-ios-player-helper/issues/160
pod 'youtube-ios-player-helper', :git=>'https://github.com/youtube/youtube-ios-player-helper', :commit=>'head'
pod 'iOSCalendarEventParser', '=0.0.4'
pod 'OneDriveSDK'

end


target 'Test' do
devDependecies
end

bridge.h 文件中的示例错误: enter image description here

但是这个文件存在于pod目录下。 enter image description here

最佳答案

“youtube-ios-player-helper”可以编译为框架。因此,将其从桥头中删除,然后在 Swift 类中添加一个导入行

import youtube-ios-player-helper

对所有可以编译为框架的 Pod 执行相同的操作

关于ios - 在 podfile 中添加 'use_frameworks!' 会破坏应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36132417/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com