Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: Need help with cocoapods integration #1093

Closed
1 task done
Sergozh opened this issue May 21, 2022 · 14 comments
Closed
1 task done

[question]: Need help with cocoapods integration #1093

Sergozh opened this issue May 21, 2022 · 14 comments

Comments

@Sergozh
Copy link

Sergozh commented May 21, 2022

How can we help?

I have pods file like this:

target 'Main iOS App' do
    pod 'OneSignalXCFramework', '>= 3.0.0', '< 4.0'

  target 'OneSignalNotificationServiceExtension' do
    use_frameworks!
    pod 'OneSignalXCFramework/OneSignalExtension', '>= 3.0.0', '< 4.0'
  end

    pod 'Moya'
    pod 'KeychainAccess'
    pod 'Firebase/Crashlytics'
    pod 'Firebase/RemoteConfig'
    pod 'Amplitude', '~> 8.0'
    pod 'Firebase/Analytics'
end

And I meet issue when all pods where integrated onto nested OneSignalNotificationServiceExtension target. Could you help to resolve this issue?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

@Sergozh Could you provide the error or exact issue you are seeing? Please also share your the full contains of your Podfile and Podfile.lock files.

One suggestion is you may need to move use_frameworks! to the main target.

@Sergozh
Copy link
Author

Sergozh commented May 23, 2022

Sure I'll create test project to show issue

@Sergozh
Copy link
Author

Sergozh commented May 23, 2022

Here is my test environment: Project

@Sergozh
Copy link
Author

Sergozh commented May 25, 2022

Update project link

@emawby
Copy link
Contributor

emawby commented May 31, 2022

@Sergozh I am getting errors in that project even after removing all OneSignal references, however I see what you mean where by nesting the targets the Notification Service Extension now also depends on all of the pods in your app target. You can try removing all of the dependencies from the Pods-OneSignalNotificationServiceExtension framework except for OneSignalXCFramework
image

@Sergozh
Copy link
Author

Sergozh commented Jun 1, 2022

@emawby I'll try ASAP. Thanks for your advice!

@Sergozh
Copy link
Author

Sergozh commented Jun 2, 2022

@emawby unfortunately having the same error after removing all dependencies except OneSignalXCFramework. Could I revert to previous structure of pod file without nesting or not after update 3.11.0?

@emawby
Copy link
Contributor

emawby commented Jun 2, 2022

@Sergozh You can yes, but don't use the OneSignalExtension submodule just use the OneSignalXCFramework in both the podfile and code

@Sergozh
Copy link
Author

Sergozh commented Jun 2, 2022

Thank you! Hope we can find better solution than nesting targets and removing dependencies manually from Xcode

@umarfarooqitgcuf
Copy link

i have also faced the same issue thats in release 3.11.1 thats the issue in pod release.
i have solved the issue by downgrading the pod for onesignal pod 'OneSignal', '= 3.10.2' and changing code related to pod version 3.10.2.

@ansafdev
Copy link

ansafdev commented Jun 4, 2022

Hi @umarfarooqitgcuf
Last several months not resolve this issue. But now i have successfully done this issue. I appreciate your effort.

@OneSignal OneSignal deleted a comment from Dodalun Jun 7, 2022
@OneSignal OneSignal deleted a comment from Dodalun Jun 7, 2022
@OneSignal OneSignal deleted a comment from Dodalun Jun 7, 2022
@vinczebalazs
Copy link

Also facing the same issue.

@ansafdev
Copy link

ansafdev commented Aug 8, 2022

Also facing the same issue.

Please install the pod with specific version pod 'OneSignal', '= 3.10.2'. It will be helpful for you.
thanks

@yunustek
Copy link

pod 'OneSignal', '= 3.10.2' not working for me. My other pods doing error when I added to extension

@emawby emawby closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants