举报
你做了什么?无法找到分机的主机目标
我试图运行吊舱安装命令
你是怎么想到要发生什么?
像1.1.1版本一样正确安装所有的pod依赖关系。
发生了什么呢?
[!]无法找到myExtension1,myExtension2的主机目标。请将嵌入式目标的主机目标添加到Podfile。 某些类型的目标需要主机目标。主机目标是嵌入“子”目标的“父”目标。这些例子类型的需要主机目标目标:
- 框架
- 应用程序扩展
- 手表OS 1个扩展
- 消息拓
的CocoaPods(有消息应用程序一起使用时除外)环境
Stack
CocoaPods : 1.2.1
Ruby : ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin15]
RubyGems : 2.4.5.1
Host : Mac OS X 10.12.5 (16F73)
Xcode : 8.3.3 (8E3004b)
Git : git version 2.13.0
Ruby lib dir : /Users/dogo/.rbenv/versions/2.2.5/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 08682dc5b65d664048f43d7886a018856c692b63
安装源
Executable Path: /Users/dogo/.rbenv/versions/2.2.5/bin/pod
插件
claide-plugins : 0.9.2
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.2.0
cocoapods-try : 1.1.0
slather : 2.4.2
Podfile
source 'https://github.com/CocoaPods/Specs.git'
project 'MyProject', 'DebugProduction' => :release , 'Integrated' => :release , 'Mock' => :release, 'DebugMock' => :debug
platform :ios, '8.0'
inhibit_all_warnings!
def all_pods
pod 'AFNetworkActivityLogger'
pod 'AFNetworking'
pod 'AMPopTip', '~> 1.0.0'
pod 'BBBadgeBarButtonItem', '~> 1.2'
pod 'Bricks', '~> 0.1.2'
pod 'bricks-Mantle', '~> 0.1.0'
pod 'CocoaLumberjack', '~> 2.2.0'
pod 'Crashlytics'
pod 'CustomIOSAlertView'
pod 'Fabric'
pod 'FBSDKCoreKit', '4.16.0'
pod 'FBSDKLoginKit', '4.16.0'
pod 'FBSDKShareKit', '4.16.0'
pod 'FDKeychain', '~> 1.0.0'
pod 'FSCalendar'
pod 'GoogleAnalytics', '~> 3.17.0'
pod 'GoogleConversionTracking', '~> 3.4.0'
pod 'GoogleMaps', '2.3.1'
pod 'HockeySDK', '4.1.6'
pod 'JVFloatLabeledTextField'
pod 'LGPlusButtonsView'
pod 'MaryPopin', '1.4.2'
pod 'MBProgressHUD'
pod 'MGSwipeTableCell'
pod 'MMWHaleImageCropper', '~> 0.1'
pod 'NSStringMask', '1.2'
pod 'ObjectiveSugar', '~> 1.1.0'
pod 'PromiseKit', '~> 1.7.0'
pod 'Realm', '~> 2.3.0'
pod 'REFrostedViewController', '~> 2.4'
pod 'RegExCategories', '~> 1.0'
pod 'SMXMLDocument', '~> 1.1'
pod 'SpotlightHandler', :git => 'https://github.com/renatosarro/SpotlightHandler'
pod 'SRMonthPicker', '~> 0.2.10'
pod 'TLInputsChainHelper', :git => 'https://github.com/thiagolioy/TLInputsChainHelper.git'
pod 'TLJsonFactory'
pod 'UITintedButton'
pod 'XMLDictionary', '1.4'
pod 'ZBarSDK'
pod 'ZSWTaggedString', '~> 1.1'
pod 'ZSWTappableLabel', '1.3'
end
target :MyProject do
all_pods
end
target :'MyProject-cal' do
all_pods
end
target :MyProjectExtension do
pod 'GoogleAnalytics', '~> 3.17.0'
end
target :MyProject2 do
all_pods
end
target :'MyProject2-cal' do
all_pods
end
target :MyProjectExtension2 do
pod 'GoogleAnalytics', '~> 3.17.0'
end
target :MyProjectTests do
inherit! :search_paths
pod 'Expecta'
pod 'OCMock'
pod 'Specta', '1.0.5'
pod 'TLJsonFactory'
end
清理生成,重新启动电脑,然后再试一次!我遇到了类似的问题,通过该问题得到解决 –