Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install pods for Today Extension(Widget) in iOS

How can I install pods for an extension also named as Widget in my app. I'm already having that pod installed for my app target.

I've looked online and the solution that I found has got me errors like one in the screenshot.

enter image description here

Following is the code in my pods file:

platform :ios, '9.0'
use_frameworks!

target 'myapp' do
    pod 'Alamofire', '~> 4.8.0'
end

target 'myapp_extension' do
  pod 'Alamofire', '~> 4.8.0'
end



Multiple commands produce '/Users/abc/Library/Developer/Xcode/DerivedData/myapp-hitzznvtnviylfcammkfaxjvlryg/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks/nanopb.framework':
1) That command depends on command in Target 'myapp' (project 'myapp'): script phase “[CP] Embed Pods Frameworks”
2) That command depends on command in Target 'myapp' (project 'myapp'): script phase “[CP] Embed Pods Frameworks”
like image 240
Rohitax Rajguru Avatar asked Jan 26 '23 08:01

Rohitax Rajguru


1 Answers

You can use inherit! :search_paths to add same pods to your extensions

platform: ios, '9.0'

target 'myapp' do
    use_frameworks!
    pod 'Alamofire', '~> 4.8.0'

    target 'myapp_extension' do
        inherit! :search_paths
    end

end
like image 195
Malik Avatar answered Jan 29 '23 12:01

Malik