Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on "pod install --verbose"

Tags:

ios

cocoapods

I just installed pod with this command

sudo gem install cocoapods

git cloned a project from git repository and run pod install --verbose and I get this error:

enter image description here

Resolving dependencies of `Podfile`
[!] Unable to integrate the following embedded targets with their respective host targets (a host target is a "parent" target which embeds a "child" target like a framework or extension):

- MyApp (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.

I can't get this app tower inside Xcode because of this. I get this error message:

enter image description here

update

this is my (the only one) Podfile

enter image description here

update 2

after putting up the use_frameworks! line I get this:

enter image description here

like image 659
lewis4u Avatar asked Nov 21 '25 09:11

lewis4u


2 Answers

add use_frameworks! to solve this problem on OneSignalNotificationServiceExtension.

target 'OneSignalNotificationServiceExtension' do use_frameworks! pod 'OneSignal', '>= 2.5.2', '< 3.0' end

like image 146
Mauro Marsiglia Avatar answered Nov 23 '25 22:11

Mauro Marsiglia


Okay!

Looks like the solution in your case was to move use_frameworks! up and out of a specific target and make it global for the Podfile.

The issues you're now seeing (in your Update 2) is that you need to go into your Project Settings and fix the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES setting. I'd recommend simply removing the build setting.

like image 43
Michael Dautermann Avatar answered Nov 23 '25 22:11

Michael Dautermann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!