首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cocoapods 1.3.1 + XPC服务

Cocoapods 1.3.1 + XPC服务
EN

Stack Overflow用户
提问于 2017-11-24 07:12:39
回答 1查看 164关注 0票数 0

在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

有什么建议吗?

我试着把这个目标作为我的主要目标的孩子,但那是行不通的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-24 07:22:27

正如这里提到的:https://github.com/CocoaPods/CocoaPods/issues/6256,您需要在主要项目中指定您的XPC服务作为目标依赖项。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47468059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档