在1.2.1版本之前,XPC服务目标在cocoapods中运行良好,但在更新到1.3.1之前,我得到以下错误:
[!] Unable to find host target(s) for Renderer. Please add the host targets for the embedded targets to the Podfile. Certain kinds of targets require a host target. A host target is a "parent" target which embeds a "child" target. These are example types of targets that need a host target: - Framework - App Extension - Watch OS 1 Extension - Messages Extension (except when used with a Messages Application)
相关的podspec线是:
target 'Renderer' do project 'Renderer/Renderer.xcodeproj' platform :osx, '10.10' pod 'HTMLKit', :git => 'https://github.com/iabudiab/HTMLKit.git' end
有什么建议吗?
我试着把这个目标作为我的主要目标的孩子,但那是行不通的。
发布于 2017-11-24 07:22:27
正如这里提到的:https://github.com/CocoaPods/CocoaPods/issues/6256,您需要在主要项目中指定您的XPC服务作为目标依赖项。
https://stackoverflow.com/questions/47468059
复制相似问题