2017-09-27 51 views
1

我有一个OneSignal模块的问题。它一直给我没有这样的模块OneSignal和我安装它的可可豆荚,并在我的pod文件中有use_frameworks!。我真的不知道还有什么我应该配置,使其工作没有这样的模块OneSignal

我尝试过其他的解决方案喜欢这里:

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 
+0

虽然对外部资源的链接就可以了,它很可能是更好的简要列出你已经在您的文章直接试着不要强迫别人跟着联系,以便了解你做了什么。 –

回答

0

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

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 
+0

我这样做起初在我的pod文件中可以检查我的pod文件在我的问题请 – leo0019

+0

不,我没有看到'AppDelegate'的错误 – leo0019

+0

你能分享你所遵循的步骤吗? cz我遵循这里提到的步骤,https://documentation.onesignal.com/docs/ios-sdk-setup,并且我dint面临任何问题。 –