-
Notifications
You must be signed in to change notification settings - Fork 218
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
Error in pod install (using swift) #6
Comments
@lubritto Can you post your iOS project's |
When i create a project in flutter including swift as platform channel, the podfile already comes with use_frameworks! My podfile
|
i have the same problem! |
I also ran into this issue. The default Podfile that is installed with the command
That final command shows the following:
This can also be seen by running
Commenting out the |
I am definitely able to reproduce this issue - I am investigating now. Thanks for all the details! |
Any update? I'm stuck on this as I can't remove use_frameworks because I have other firebase stuff |
I had to remove all firebase dependencies so I can comment out !use_frameworks to make this work. |
Same situation in here.. i can't remove use_frameworks |
Same problem here. I use other plugins that require use_frameworks! |
Also experience the problem. |
Hey @Nightsd01, any updates on this? |
Apologies for the delay. The problem is that, for historical reasons (iOS 7 support), our SDK's framework is a static framework, not a dynamic framework. I've created a dynamic version of our iOS SDK that will fix this issue, but I'm deciding how to implement this dependency structure. We do not want to just switch our default cocoapod to being a dynamic framework since this can cause a lot of issues for people using our native SDK and other wrapper SDK's. We are considering having a separate pod spec for the dynamic framework (ie. maybe I will update this issue shortly with a workaround, and I expect to have a fully fleshed-out fix within the next few days. Thanks for your patience! |
Why does the OneSignal-Flutter module need to provide iOS 7 support? Flutter itself is only slated to support iOS 8+. |
@andrewackerman great question - for Flutter we don’t provide iOS 7 support of course. But our Flutter SDK is basically just a wrapper on top of our native iOS SDK. And our native iOS SDK is used in a lot of stuff beyond flutter - it gets used by native iOS apps, react native, Xamarin, etc. At this point we wouldn’t mind deprecating iOS 7 support. I’m just explaining why - historically speaking, we went with a static framework. So many apps use our iOS framework at this point that we are cautious to make such a change. In any case, I’ll be updating the flutter SDK to use a dynamic iOS framework instead. |
Is the issue only with swift projects? |
This issue is for swift projects or projects with swift plugins |
@Nightsd01 How close are you to releasing the dynamic framework? |
Sorry for the delay on this everyone but we finally have a dynamic framework! This will work in Swift projects. I will be creating a new release for certain tomorrow. The only concern is that our dynamic framework is also a fat framework. This is fine with static frameworks as only the ARM specific code will get linked when you upload to the App Store. But with dynamic frameworks specifically, Apple will not allow you to upload an app with a fat dynamic framework. So in addition to updating our SDK tomorrow, I will be adding a new step in our setup guide to add a short little build script to your iOS project (strictly speaking it's only necessary when you actually archive and upload to the App Store). Thanks for your patience everyone and I apologize it took so long to get this fixed! |
If you want to use it right now, you can modify our There are some other issues with our SDK that I intend to fix as well in tomorrow's release |
@Nightsd01 the new version will be released today ? I tried to change OneSinal to OneSignalDymaic, but another error appeared |
Hello, The problem still continue. Please see: #21 |
Description:
Error in pod install when add onesignal to packages, just on ios, android works fine!
Environment
tested with 1.0.0 and 1.0.1
pub and follow setup guide
Steps to Reproduce Issue:
Anything else:
[!] The 'Pods-Runner' target has transitive dependencies that include static binaries: (/Users/XXXX/Documents/FlutterProjects/XXXXX/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework)
The text was updated successfully, but these errors were encountered: