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

Prevent transitive dependencies error using dynamic library #1227

Closed
mrcararia opened this issue Nov 19, 2018 · 6 comments
Closed

Prevent transitive dependencies error using dynamic library #1227

mrcararia opened this issue Nov 19, 2018 · 6 comments

Comments

@mrcararia
Copy link

Hello,

I would like to migrate from HockeyApp to AppCenter.
I have developed my own cocoapods library using 'HockeySDK-Source' as transitive dependency of my framework. Trying to migrate to AppCenter, cocoapods install end with error:
"target has transitive dependencies that include static binaries:"

Is possible to deploy a dynamic version of this cocoapod?
This is necessary to create a private pod using frameworks, needed when there are swift classes in Xcode project.

Thanks.

@achocron
Copy link
Contributor

achocron commented Nov 19, 2018

Unfortunately, we have no plans to release a dynamic framework version of the App Center SDK.

However, based on a thread, some users had success by adding

pre_install do |installer|
	Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

to their Podfile. I am not sure if it will work for you, but it might be worth a try.

Edit: this thread may actually be more helpful.

@iamclement
Copy link
Contributor

@mrcararia did you get it working with @achocron suggestions?

@mrcararia
Copy link
Author

@clpolet No, this not solve my problem. The issue occurs when I execute pod lib lint to test if the podspec and the resources to produce a private framework are ok. Lint operation failed with error:

[!] The 'Pods-<MyFrameworkName>' target has transitive dependencies that include static binaries: (<projectDir>/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAnalytics.framework, <projectDir>/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework, and <projectDir>/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework)

@iamclement
Copy link
Contributor

iamclement commented Dec 3, 2018

Sorry for the late reply. HockeyApp and AppCenter are both static fat frameworks, they both have a crash reporter (another static fat framework) as dependency. The difference is the possibility to build HockeyApp from source and that's what you were using. Basically AppCenter doesn't have an AppCenter-Source pod to pull the source instead of the binaries into your project. This is not in our road-map for the transition to AppCenter but we'll still keep the feature request open in case it find its way into our road map.

@mrcararia
Copy link
Author

Any updates on that?

@DmitriyKirakosyan
Copy link
Contributor

As we do not have plans to add support for this feature in the next year, I'm closing the issue.

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

5 participants