gpt4 book ai didi

swift - 没有这样的模块 OneSignal

转载 作者:搜寻专家 更新时间:2023-10-31 08:30:03 24 4
gpt4 key购买 nike

我对 OneSignal 模块有疑问。它一直给我 No such module OneSignal 并且我通过 cocoa pods 安装它并且在我的 pod 文件中有 use_frameworks! 。我真的不知道我还应该配置什么才能让它工作

我在这里尝试了其他解决方案,例如:

Getting error No such module using Xcode, but the framework is there

enter image description here

enter image description here

连播文件

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'Jaee2' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for Jaee2


pod 'OneSignal', '>= 2.5.2', '< 3.0'
end

target 'OneSignalNotificationServiceExtension' do
use_frameworks!

pod 'OneSignal', '>= 2.5.2', '< 3.0'
end

最佳答案

您是否在 AppDelegate 中看到相同的错误?以及当你import OneSignal那里?如果不是,请确保在您的 pod 文件中添加了 pod 'OneSignal', '>= 2.5.2', '< 3.0'对于目标 OneSignalNotificationServiceExtension .所以你的 pod 文件应该是这样的:

target 'OneSignalNotificationServiceExtension' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for OneSignalNotificationServiceExtension
pod 'OneSignal', '>= 2.5.2', '< 3.0'

end

target 'test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for test
pod 'OneSignal', '>= 2.5.2', '< 3.0'

end

关于swift - 没有这样的模块 OneSignal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46457232/

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