so what I am trying to do is get the information of the current user from Firebase and display that on a today widget. In order to do that I had to set the Today extension up like it's own app following this guide. Everything went smoothly; however, when I tried to run the app I got three error messages from a completely different framework that I am using that has absolutely nothing to do with the today extension, it't the Framework IQAudioRecorderController. I get this error in the IQAudioCropperViewController.m file:
"sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead."
I have looked up the reasons for this online and it's because the framework isn't compatible with extensions, but the thing is, this framework has nothing to do with my extension and it could have chosen any of the other frameworks as well, why this one. I've looked online for a solution and nothing is what I want. I haven't done anything to the app besides add the extension to Firebase following those instructions and added the pod and that's is, then all of a sudden I get 3 of the exact same error messages from the same file. I've tried to Clean and Build and nothing has worked. Thank you so much in advance!
Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'ShareExtension' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ShareExtension!
end
target 'myApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'JSQMessagesViewController', '7.3.3'
pod 'IDMPhotoBrowser'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'MBProgressHUD'
pod 'IQAudioRecorderController'
pod 'SinchRTC'
pod 'OneSignal'
# Pods for myApp
target 'myAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'myAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
target 'SiriIntents' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for SiriIntents
end
target 'SiriIntentsUI' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for SiriIntentsUI
end
target 'TodayExtension' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
# Pods for TodayExtension
end